Configuring Time Synchronization and Timezone on Ubuntu 18.04

To simplify server management across multiple timezones,  Cloud Servers default to the universal timezone UTC. In this article we’ll cover how to change your timezone and ensure synchronization is working properly.

In most modern Linux based Operating Systems, the timedatectl command is used to manage time regardless of whether your using ntp, chrony, or systemd-timesyncd. To see the current time, timezone, and time synchronization status, run the timedatectl command with no arguments.

timedatectl

You’ll see your time and timezone in the Local time field:

Local time: Mon 2020-03-01 19:11:29 UTC

You can see that time synchronization is working in the System clock synchronized field:

System clock synchronized: yes

Update timezone

If you need to update your timezone, timedatectl makes it very simple. First, list timezones:

timedatectl list-timezones

Set new timezone:

sudo timedatectl set-timezone America/Chicago

Verify the change with timedatectl:

timedatectl

You’ll see in the Local time field the timezone has been updated:

Local time: Mon 2020-03-02 13:31:16 CST

Leave a Reply

Your email address will not be published. Required fields are marked *