Namran Hussin Linux Change Server Timezone in CentOS

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.

Related Post

Installing WICD for wireless connection User interface in CentOS 5.6Installing WICD for wireless connection User interface in CentOS 5.6

First download the package from website : wget http://downloads.wicd.net/pkgs/stable/1.6.x/1.6.2/CentOS_5/wicd-1.6.2-2.1.x86_64.rpm rpm -ivh wicd-1.6.2-2.1.x86_64.rpm then install the dependencies for this .. as it require python-urwid .. assume you have install rpmforge repo.