Timezone changes do not persist
I am running Ubuntu 18.04.3 and changes I make to the timezone do not persist. That is, I make the change and at some point within 5-20 minutes, the clock reverts to UTC time.
I have updated the timezone using the GUI and also via the command line:
sudo timedatectl set-timezone "Pacific/Auckland"
sudo dpkg-reconfigure -f noninteractive tzdata
I’ve also played around with the “Automatic Date/Time” and “Automatic Timezone” settings and it doesn’t make any difference whether they’re on or off.
I can’t find a report for anything similar when searching for this issue online.
Any suggestions for how to investigate or fix this would be appreciated.
According to this article:
You don’t need the
sudo dpkg-reconfigure -f noninteractive tzdata command and it makes me wonder if it harms things.
Basically just use:
$ timedatectl # lists your current time zone
$ sudo timedatectl set-timezone "Pacific/Auckland"
$ timedatectl # lists your new time zone
If time zone reverts back to UTC, use this command:
sudo dpkg-reconfigure tzdata
Can try using the command below to disable the automatic-timezone change
gsettings set org.gnome.desktop.datetime automatic-timezone false