[CentOS] how to properly change the timezone

Stephen Harris lists at spuddy.org
Thu Jul 8 01:06:25 UTC 2010


> I have a Centos 5.5 server with no GUI installed.   I have several times 
> changed the timezone by copying the correct file to /etc/localtime, 
> however something keeps changing it back.  I'm not sure if this is a yum 
> update or what.  Without installing the graphical tools, how can I 
> update the timezone in such a way that the /etc/localtime file won't 
> keep getting clobbered.

/usr/bin/system-config-time

(from the system-config-date RPM package)

It will work in text mode.

(Essentially /etc/sysconfig/clock is the config file that also needs
updating)

-- 

rgds
Stephen



More information about the CentOS mailing list