Try to make sure time and date is syncing with the internet.
This commit is contained in:
parent
b22785ab3e
commit
51a0fd0883
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user