V
V
Vitali2011-07-26 23:34:34
CentOS
Vitali, 2011-07-26 23:34:34

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

produced more than once, so the problem is obviously not in this (I repeat that the timezone has nothing to do with it, this happens with any timezone)
I thought that there might be problems with DST (Daylight Saving Time) But date stubbornly says that he understands perfectly well that it's summer (EEST - Eastern Europe Summer Time) so that's the point too.
As an option, of course, you can use the time zone for an hour less, but this does not look like a very beautiful solution to the problem.
What do you think are the possible solutions to this problem? I have already smoked all the Google but I did not find a solution to my problem (:(
PS Before that, I created another question about this problem, but there the whole question was not fully disclosed and it had already gone into oblivion without receiving a sane answer. Therefore, it makes more sense from my point of view to open a new question.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
charon, 2011-07-28
@charon

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.

D
DanielWolf, 2011-07-27
@DanielWolf

Maybe the date is just wrong on the server?
ntpdatepool.ntp.org

M
ModgaheaD, 2011-07-27
@ModgaheaD

Why not configure /etc/sysconfig/clock?
If it doesn't help, start ntpd.
And better not ln, but cp.

K
Kindman, 2011-07-27
@Kindman

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

P
Puma Thailand, 2011-07-27
@opium

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 question

Ask a Question

731 491 924 answers to any question