How to set or change timezone on Ubuntu?

Linux

I want to change the timezone on my Ubuntu linux machine. My current timezone is:

Europe/Paris

How to change the timezone on Ubuntu?

7

The system’s timezone on Ubuntu is set during the install. You are able to change the timezone easily. You need to run “$ sudo timedatectl set-timezone your/TimeZone” in to command line interface on your machine. The following solution will work for Ubuntu 14.04Ubuntu 16.04, Ubuntu 18.04 and Ubuntu 20.04. 

Checking the current configured timezone:

$ timedatectl

This gives you the output of the current configured timezone. It should look like this:

                      Local time: Tue 2020-08-04 12:03:49 CEST
                  Universal time: Tue 2020-08-04 10:03:49 UTC
                        RTC time: n/a
                       Time zone: Europe/Berlin (CEST, +0200)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

Set your timezone e.g. to “Europe/Berlin”:

$ sudo timedatectl set-timezone Europe/Berlin

This will work work for: Ubuntu 14.04Ubuntu 16.04, Ubuntu 18.04 and Ubuntu 20.04. 

List available timezone on Ubuntu:

The following command will list all available timezone on your linux machine. Those timezones are able to be configured on your host. 

$ timedatectl list-timezones

 

answered 2020-08-04 10:14 Peterson