Ubuntu Server Keep Time Updated
Synonyms:
According to the Ubuntu 16.04 document: Time Synchronisation with NTP. System time is automaticlly synchronized using timedatectl and timesyncd. Users do not need to worry about this.
system time status
timedatectl
shows the system time status like this
Local time: Sat 2016-11-19 13:45:20 CET
Universal time: Sat 2016-11-19 12:45:20 UTC
RTC time: Sat 2016-11-19 12:45:20
Time zone: Europe/Berlin (CET, +0100)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
change system timezone
sudo timedatectl set-timezone {{ timezone.value }}
change system timezone (interactively)
sudo dpkg-reconfigure tzdata
Time Synchronization
sudo timedatectl set-ntp on