Change Time Zone using timedatectl Command on Ubuntu 20.04

There are many commands and applications that uses system time zone to perform various operations. In that scenario is important to set correct time zone in the system.

This tutorial shows how to change time zone using timedatectl command on Ubuntu 20.04.

Current time zone

We can execute timedatectl command without any arguments to find out which time zone is currently set in the system.

timedatectl

Command provides output that is similar to the following:

               Local time: Sat 2021-09-25 06:23:13 UTC
           Universal time: Sat 2021-09-25 06:23:13 UTC
                 RTC time: Sat 2021-09-25 06:23:13
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

List of time zones

Before changing the time zone, can be useful to determine all available time zones:

timedatectl list-timezones

A part of the output:

......
America/Moncton
America/Monterrey
America/Montevideo
America/Montreal
America/Montserrat
America/Nassau
America/New_York
America/Nipigon
......

Change time zone

Once you determined which time zone is appropriate for you, use set-timezone argument to change time zone in the system. For example, the following command sets New York time zone:

sudo timedatectl set-timezone America/New_York

Leave a Comment

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