How to change the default time zone in Ubuntu 18.04
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/496
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