X
    Categories: Linux

Change Server Timezone in CentOS

It just happened that sometimes the server is using UTC time instead of our localtime.

[root@venus wiki]# date
Wed Oct 14 12:22:59 UTC 2015
[root@venus wiki]# cat /etc/localtime
TZif2UTCTZif2UTC
UTC0

Make a backup of the /etc/localtime

[root@venus wiki]# mv /etc/localtime /etc/localtime.bak

Symlink to our desired timezone. as a new /etc/localtime

[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Ku
Kuala_Lumpur  Kuching       Kuwait
[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Ku
Kuala_Lumpur  Kuching       Kuwait
[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime

test again

[root@venus wiki]# date
Wed Oct 14 20:54:52 MYT 2015

Done !

M.

Namran Hussin: a soft spoken guy... with exceptional interest in computers and technology. I love to learn new thing and also love to break thing for the sake of learning.. but I do abide to the self-imposed limitation or certain thing such as social thing in life, thing can be done and thing that must be avoided at whatever cost such as drug,illegal tracking, smoke,illicit activity..etc.muahahaha let's share what we had in this short term of the life.! make it worth of the living.~
Related Post
Leave a Comment