timezone

Change timezone on centos

Posted on Updated on

[root@sv-85185 mysql]# date
Thu Dec 7 01:34:57 EST 2017
[root@sv-85185 mysql]# date -u
Thu Dec 7 06:35:13 UTC 2017
[root@sv-85185 mysql]# ls /usr/share/zoneinfo/
Africa Brazil Egypt GB-Eire HST Japan MST7MDT posix Singapore WET
America Canada Eire GMT Iceland Kwajalein Navajo posixrules Turkey W-SU
Antarctica CET EST GMT0 Indian leapseconds NZ PRC tzdata.zi zone1970.tab
Arctic Chile EST5EDT GMT-0 Iran Libya NZ-CHAT PST8PDT UCT zone.tab
Asia CST6CDT Etc GMT+0 iso3166.tab MET Pacific right Universal Zulu
Atlantic Cuba Europe Greenwich Israel Mexico Poland ROC US
Australia EET GB Hongkong Jamaica MST Portugal ROK UTC
[root@sv-85185 mysql]# unlink /etc/localtime
[root@sv-85185 mysql]# ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
[root@sv-85185 mysql]# date
Thu Dec 7 13:37:26 +07 2017
[root@sv-85185 mysql]#

Advertisements