How to change timezone on Ubuntu 18.04 LTS - jbilander/HowTos GitHub Wiki
root@zeus:/# timedatectl
Local time: Thu 2018-12-27 18:01:55 UTC
Universal time: Thu 2018-12-27 18:01:55 UTC
RTC time: Thu 2018-12-27 18:01:55
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
timesyncd itself is still a normal service, so you can check its status also more in detail via:
root@zeus:/# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-12-27 16:44:36 UTC; 1h 18min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 3051 (systemd-timesyn)
Status: "Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com)."
Tasks: 2 (limit: 4915)
CGroup: /system.slice/systemd-timesyncd.service
└─3051 /lib/systemd/systemd-timesyncd
Dec 27 16:44:36 zeus systemd[1]: Starting Network Time Synchronization...
Dec 27 16:44:36 zeus systemd[1]: Started Network Time Synchronization.
Dec 27 16:44:40 zeus systemd-timesyncd[3051]: Network configuration changed, trying to establish connection.
Dec 27 16:44:40 zeus systemd-timesyncd[3051]: Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com).
Dec 27 16:44:41 zeus systemd-timesyncd[3051]: Network configuration changed, trying to establish connection.
Dec 27 16:44:41 zeus systemd-timesyncd[3051]: Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com).
Show all Available Timezones:
root@zeus:/# timedatectl list-timezones
(The timedatectl command is using /usr/share/zoneinfo/ directory to generate the timezone list. )
Change Timezone
Now that we know the timezone name we wish to change our timezone settings to, use timedatectl command to set a new timezone.
root@zeus:/# timedatectl set-timezone Europe/Stockholm
Confirm Timezone Change:
root@zeus:/# timedatectl
Local time: Thu 2018-12-27 19:08:03 CET
Universal time: Thu 2018-12-27 18:08:03 UTC
RTC time: Thu 2018-12-27 18:08:03
Time zone: Europe/Stockholm (CET, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no