$ date
Fri Apr 17 11:51:41 UTC 2020
Files under / usr / share / zoneinfo /.
For directory structure Region A / Region B. For example, in the case of Tokyo, ʻAsia / Tokyo`.
$ export TZ="Asia/Tokyo"; date
Fri Apr 17 20:53:49 JST 2020
Copy the files under / usr / share / zoneinfo to / etc / localtime, or make a symbolic link.
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
Use timedatectl.
$ timedatectl set-timezone Asia/Tokyo
$ timedatectl status
https://eng-entrance.com/linux-time-timezone
Recommended Posts