Automatically Set Timezone
sudo pacman -S NetworkManager
Then ensure that
are both enabled and started.
Create this file at
#!/bin/sh case "$2" in up) timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)" ;; esac
The dispatcher service should now set the timezone automatically.
I had to whitelist the domain I set in the script (ipapi.co) in my PiHole server. Some block lists may prevent this from resolving.