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

This commit is contained in:
Storm Dragon 2024-03-21 11:27:08 -04:00
parent 157c5cc9e3
commit 94b68d8fdf
1 changed files with 1 additions and 2 deletions

View File

@ -21,11 +21,10 @@ mapfile -t cities < <(timedatectl --no-pager list-timezones | grep "$region" | c
$(for i in ${cities[@]} ; do echo "$i";echo "$i";done) --stdout)
# Set the timezone
sudo "${sudoFlags[@]}" timedatectl set-timezone ${region}/${city}
if [[ -f /etc/localtime ]]; then
sudo "${sudoFlags[@]}" rm /etc/localtime
fi
sudo "${sudoFlags[@]}" ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
# Make sure we are syncing with the internet
sudo "${sudoFlags[@]}" timedatectl set-ntp true
yay -Sy --needed --noconfirm networkmanager-dispatcher-openntpd