centos localtime change every time yum update

cybermaster

Verified User
Joined
Aug 10, 2009
Messages
6
Hi

I have problem with my one of my servers. each time update server with yum, localtime change to EDT time zone. So i have to set time again to my localtime.

Anybody knows how can i fix this problem?
 
Seems this problem occurs more when I'm looking on the internet.
Try this:

cat /etc/sysconfig/clock

Make sure this is containing the same info as /etc/localtime, if not, change it (you probably also need to reboot the vps, not sure about that).

I usually do this by default:
Code:
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

If you did it the same and your clock still changes, you could try this which I found on the internet.

Code:
sed -i '/ZONE/c \ZONE="Europe\/Amsterdam"' /etc/sysconfig/clock
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

change Europe and Amstertime to your own timezone and city.
 
Back
Top