Update timezone in Ubuntu

To check your current timezone, run:


Fri Jan 25 02:12:14 UTC 2020
Above we can see the timezone is UTC (Coordinated Universal Time).

UTC is the default time zone. To avoid timezone confusion and the complexities of adjusting clocks for daylight saving time in accordance with regional custom, it is often recommended that all servers use UTC.

If your site or application requires a different system timezone, start by listing the available options:

timedatectl list-timezones

Now its time to set your time zone. Mine timezone is Europe/Stockholm

sudo timedatectl set-timezone Europe/Stockholm

Now check if the timezone has been set correctly.


We can see the timezone has changed to CET, which correct for Stockholm.