CentOS 7 Set time zone

[root@fs network-scripts]# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 25 Nov 14 11:55 /etc/localtime -> ../usr/share/zoneinfo/UTC

[root@fs network-scripts]# timedatectl list-timezones

[root@fs network-scripts]# timedatectl set-timezone Asia/Bangkok

[root@fs network-scripts]# rm -rf /etc/localtime

[root@fs network-scripts]# ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime

[root@fs network-scripts]# date
Fri Mar 11 14:52:19 +07 2022

Comments are closed.