1826291 Members
4412 Online
109692 Solutions
New Discussion

Re: NTP and time zones

 
SOLVED
Go to solution
Raynald Boucher
Super Advisor

NTP and time zones

Greetings all,

I just had a discussion with a superior about the upcoming necessity to dhange our timezone data on an old Mandrake 8.2 Linux machine.

He claims that we don't have to because the machine clock is maintained by NTP.

I would think the time returned fro the time server is in universal time format which is then interpreted by the client's timezone settings ($TZ for UNIX, /etc/localtime for linux).

Can anyone confirm the process and/or point me to documentation that clearly explains it?

Thank you.

RayB
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: NTP and time zones

You are right. The NTP server provides the time in UTC, and your client timezone dictates when to enter and leave DST.

A good explanation about the whole process is here:

http://tldp.org/HOWTO/TimePrecision-HOWTO/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
James R. Ferguson
Acclaimed Contributor

Re: NTP and time zones

Hi Ray:

You are correct. Show your "superior" the following and see if it doesn't reinforce the notion of a timezone as a +- offset of time *from* universal (Greenwich) time:

# date
# TZ=UTC date
# TZ=EST5EDT date
# TZ=PST8PDT date
# TZ=CST-9:30CDT date

The above set the TZ variable only for the duration of the commandline.

The dates for Standard or Daylight Saving time transitions are coded in configuration files. In the United States, as you aware, the Spring transition will occur three weeks earlier than before and the Fall change a week later than previously. Once again, though, the actual server clock (and, of course the time returned by NTP from its sources) never changes --- only the +- delta value defined for the timezone.

Regards!

...JRF...
Raynald Boucher
Super Advisor

Re: NTP and time zones

Thank you,
2 good responses!

Case closed.