Setting the timezone on CentOS
I forget this pretty much all the time, even though it’s a fairly simple operation. 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 2008 # # to fix it # $ sudo rm /etc/localtime $ sudo ln -s /usr/share/zoneinfo/Europe/London /etc/localtime # # now check it's ok # $ date Wed Oct 1 12:42:33 GMT 2008
I imagine this works on Redhat and Fedora as well, but I can’t be sure on other Linux distros.



This was helpful to me. Thanks!
I linked in /usr/share/zoneinfo/Europe/London to localtime on the theory that it might get me summertime.
I’ll find out in March!
@jeremy you’re right
and I’ve swapped mine too
Fine instructions, thank you!
I can confirm this works on CentOS 5.5. The directories are the same.
Thank you sir!
Simple and very effective!
Thank you very much. Just Works.!!!
tnx ,very effective and helped me
Thanks! This was very usefull for me. I lost a lot of time trying to fix this problem. After I read your post, I fix it in 45 seconds.