Saturday, July 30, 2011

setting timezone on centos

http://whomwah.com/2008/10/01/setting-the-timezone-on-centos/

There are loads of timezone data files stored in:

/usr/share/zoneinfo

So for my CentOS install, to set my machine to London time, I use:

# # this is not correct for me # $ date Wed Oct  1 07:43:58 CDT 2011 # # to fix it # $ sudo rm /etc/localtime $ sudo ln -s /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime # # now check it's ok # $ date Wed Oct  1 12:42:33 GMT 2011

No comments:

Related Posts Plugin for WordPress, Blogger...