How to change the default time zone in Ubuntu 18.04

2020-11-04 15:48:27 | Linux | 1k+ Reads

Execute the command (take Tokyo as an example):

sudo timedatectl set-timezone Asia/Tokyo


 

For parameters such as Asia/Tokyo, you can use

timedatectl list-timezones

Check the parameters you want.

 

Press Space is the next page, B is the previous page.

After you find the time zone you want, write it down and press q to exit.

 

Finally, execute the command

date

Check whether the modification is successful.

 

For example, the output will be similar to:

Sat Oct 3 22:22:11 JST 2020

(The default is UTC)

This article was last edited at 2020-11-04 15:51:40