[CentOS] how to properly change the timezone

Mark Pryor tlviewer at yahoo.com
Thu Jul 8 01:07:14 UTC 2010


Natarj,

--- On Wed, 7/7/10, Nataraj <incoming-centos at rjl.com> wrote:

> From: Nataraj <incoming-centos at rjl.com>
> Subject: [CentOS] how to properly change the timezone
> To: "CentOS mailing list" <centos at centos.org>
> Date: Wednesday, July 7, 2010, 5:58 PM
> Hi,
> 
> 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.

At the time you did the copy, there likely was an existing symlink from /etc/localtime to another timezone. Then your copy was relegated back to the symlink on reboot? Something like that.

Before you do a copy like that, check for a symlink and delete it first.

-- 
Mark


      



More information about the CentOS mailing list