Answer the question
In order to leave comments, you need to log in
Is system time exactly one hour ahead regardless of Timezone (CentOS)?
I'm trying to install Timezone Europe/Tallinn on a VPS (OpenVZ) running Centos 5.6, but date keeps telling me that although the timezone (EEST) is correct, the time is still exactly one hour ahead.
Output date : Wed Jul 27 00:17:47 EEST 2011 Real
time: 23:17
Operations like
rm -f /etc/localtime<br/>
ln -sf /usr/share/zoneinfo/Europe/Tallinn /etc/localtime
Answer the question
In order to leave comments, you need to log in
On OpenVZ, the time inside the machine cannot be changed, only the time zone. So just check that the time is running correctly on OpenVZ itself - this may be a bug. Then, you're setting the time zone incorrectly. Few people know about this, but you need to do this:
1) fill in the /etc/sysconfig/clock file as you were told, but the UTC parameter will most likely be true - it indicates that the internal time of the computer is set to UTC, and for *nix systems this is usually just like that.
2) run
/usr/sbin/tzdata-update
After that, the /etc/localtime file will be updated and everything will be as it should be.
Why not configure /etc/sysconfig/clock?
If it doesn't help, start ntpd.
And better not ln, but cp.
Still, the point is precisely in the “Transition”, I observed the same thing after reinstalling Windows, when I unnecessarily “presumptuously” unchecked the “Automatically switch to daylight saving time” box, and left the time zone in Moscow
If you have a VPS, contact the hoster, you can also see if UTC is worth it or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question