Try to make sure time and date is syncing with the internet.

This commit is contained in:
Storm Dragon 2024-03-21 11:25:13 -04:00
parent b22785ab3e
commit 51a0fd0883

View File

@ -47,14 +47,13 @@ set_timezone() {
$(for i in ${cities[@]} ; do echo "$i";echo "$i";done) --stdout)
# Set the timezone
timedatectl set-timezone ${region}/${city}
if [[ -f /etc/localtime ]]; then
rm /etc/localtime
fi
ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
# Make sure we are syncing with the internet
timedatectl set-ntp true
yay -Sy --needed --noconfirm networkmanager-dispatcher-openntpd
}