TZ var not working with ntp time server
I'm in the Newfoundland timezone and exporting the TZ variable to
"Canada/Newfoundland" then restarting the ntpd process keeps my clock
one hour before the actual time.
Is there a problem since the Day Light Savings came into affect the
other day? My computer's time has been an hour behind ever since.
My ntp.conf:
server time.nrc.ca
driftfile /var/lib/ntp/drift/ntp.drift
logconfig =syncevents +peerevents +sysevents +allclock
logfile /var/log/ntp
My TZ variable:
TZ=Canada/Newfoundland
Thanks for any help.
Re: TZ var not working with ntp time server
<craigwharding@gmail.com> wrote in message
news:1173732812.225330.39600@p10g2000cwp.googlegroups.com...[color=blue]
> I'm in the Newfoundland timezone and exporting the TZ variable to
> "Canada/Newfoundland" then restarting the ntpd process keeps my clock
> one hour before the actual time.
>
> Is there a problem since the Day Light Savings came into affect the
> other day? My computer's time has been an hour behind ever since.
>
> My ntp.conf:
> server time.nrc.ca
> driftfile /var/lib/ntp/drift/ntp.drift
> logconfig =syncevents +peerevents +sysevents +allclock
> logfile /var/log/ntp
>
> My TZ variable:
> TZ=Canada/Newfoundland
>
> Thanks for any help.
>[/color]
It wouldn't surprise me. I had to tell my Windoze machine it's in Arizona
in order for it to show a correct UTC offset (I'm actually in California).
Brian
Re: TZ var not working with ntp time server
[email]craigwharding@gmail.com[/email] wrote:[color=blue]
> I'm in the Newfoundland timezone and exporting the TZ variable to
> "Canada/Newfoundland" then restarting the ntpd process keeps my clock
> one hour before the actual time.[/color]
[color=blue]
> Is there a problem since the Day Light Savings came into affect the
> other day? My computer's time has been an hour behind ever since.[/color]
Perhaps your computer's understanding of what 'Canada/Newfoundland'
means is not up to date.
I believe that you should be 2.5 hours behind UTC at this point.
Do a 'date -u' and see if that is accurately reflecting UTC. That's all
that NTP will do. If 'date -u' is correct and 'date' is incorrect, then
your computer's timezone definitions are out-of-date.
Update them with whatever method is correct for your OS.
[color=blue]
> My TZ variable:
> TZ=Canada/Newfoundland[/color]
Running
'zdump -v Canada/Newfoundland | grep 2007'
on your computer may also be illuminating, but has nothing to do with
NTP.
--
Darren Dunham [email]ddunham@taos.com[/email]
Senior Technical Consultant TAOS [url]http://www.taos.com/[/url]
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Re: TZ var not working with ntp time server
> From: [email]craigwharding@gmail.com[/email][color=blue]
> Date: 12 Mar 2007 13:53:32 -0700
> Sender: questions-bounces+oberman=es.net@lists.ntp.isc.org
>
> I'm in the Newfoundland timezone and exporting the TZ variable to
> "Canada/Newfoundland" then restarting the ntpd process keeps my clock
> one hour before the actual time.
>
> Is there a problem since the Day Light Savings came into affect the
> other day? My computer's time has been an hour behind ever since.
>
> My ntp.conf:
> server time.nrc.ca
> driftfile /var/lib/ntp/drift/ntp.drift
> logconfig =syncevents +peerevents +sysevents +allclock
> logfile /var/log/ntp
>
> My TZ variable:
> TZ=Canada/Newfoundland[/color]
It's getting a bit boring to see this posted again and again, but NTP has
no idea about time zones, daylight saving time, or anything except
UTC. If you system is 1 hour off, i is an issue with your local
zonefiles not having been updated to know about the change in the start
of DST.
You need to load the latest zonefiles onto your system, use zic to
compile them and install them as is appropriate to your OS. (I have no
idea what that might be, although it looks like some Unix like OS.)
All together now: ntp does not do time zones.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [email]oberman@es.net[/email] Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
_______________________________________________
questions mailing list
[email]questions@lists.ntp.isc.org[/email]
[url]https://lists.ntp.isc.org/mailman/listinfo/questions[/url]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002
iD8DBQFF9cQakn3rs5h7N1ERApfXAJ9CzV3U3n4qdvj7qcMI3rF0mohsFACghIR4
eWuVv/OWyu5no9mCEvqe0dY=
=v0l6
-----END PGP SIGNATURE-----
Re: TZ var not working with ntp time server
[email]craigwharding@gmail.com[/email] wrote:[color=blue]
> I'm in the Newfoundland timezone and exporting the TZ variable to
> "Canada/Newfoundland" then restarting the ntpd process[/color]
HOLD IT right there!
ntpd is not interested at all in any TZ variable.
Please leave the poor deamon alone.
N
Re: TZ var not working with ntp time server
On 12 Mar 2007, in the Usenet newsgroup comp.protocols.time.ntp, in article
<1173732812.225330.39600@p10g2000cwp.googlegroups.com>,
[email]craigwharding@gmail.com[/email] wrote:
[color=blue]
>I'm in the Newfoundland timezone and exporting the TZ variable to
>"Canada/Newfoundland"[/color]
which is the wrong syntax for TZ - but you didn't read 'man 3 tzset'
among other things.
[color=blue]
>then restarting the ntpd process keeps my clock one hour before the
>actual time.[/color]
And as others have pointed out - NTP has nothing to do with time zones
or Daylight Saving Time - NTP is UTC. END OF DISCUSSION ABOUT NTP
AND TIME ZONES.
[color=blue]
>Is there a problem since the Day Light Savings came into affect the
>other day? My computer's time has been an hour behind ever since.[/color]
You don't bother identifying the operating system which looks like
Linux, and if so, what distribution and release. ALL Linux distributions
provided updated timezone files for their supported releases nine months
ago - and if you feel that keeping releases up to date is not important
why are you bothering about it NOW? If all else fails use the search
engine you are posting from to locate one of the hundreds of thousands
of threads in Usenet where people suddenly discover that the timezones
have changed, then go to ftp server at elsie.nci.nih.gov and get the
files from the /pub/ directory - you want BOTH
-rw-r--r-- 1 8800 0 189109 Feb 26 14:09 tzcode2007c.tar.gz
-rw-r--r-- 1 8800 0 158198 Feb 26 14:09 tzdata2007c.tar.gz
[color=blue]
>My TZ variable:
>TZ=Canada/Newfoundland[/color]
man 3 tzset
Old guy