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.