Date: Sat, 21 Sep 2002 08:45:48 +1000 (EST) From: Steven Goodwin <steve@cit.gu.edu.au> To: Len Conrad <LConrad@Go2France.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: time off by 30 minutes Message-ID: <Pine.LNX.4.44.0209210019560.360-100000@hobbit.cit.gu.edu.au> In-Reply-To: <5.1.0.14.2.20020920091303.04382968@mail.Go2France.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Sep 2002, Len Conrad wrote: Sorry about this late response. I'd finished the letter, about to send and my dialup quota kicked my off. In Australia, dialup is still quite popular due to ridiculous prices for even capped broadband. > > >I think the problem could be the -d (debug) option to ntpdate. Try > > # rm /etc/localtime > # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime > # ntpdate time.nist.gov > 20 Sep 08:42:52 ntpdate[71492]: step time server 192.43.244.18 offset > 1784.223346 sec > > but the correct time is 09:12 This is expected. 8:42 is the time (as your system reports) that you run ntpdate with consideration to your timezone. The offset is the difference between your system's clock and GMT. It is reporting about 30 minutes of difference when you run the command but, if things are working as they should, your new system clock should be adjusted by this amount. Consequently, if you execute the command again ntpdate time.nist.gov the offset should be something pretty close to zero and things should be fine. If not, and you are running the commands as root, then I have no idea what is wrong. Very puzzling. The only other suggestion I would make is that you run ntpd as a substitute for ntpdate. killall nptd; ntpd -q after making an /etc/ntp.conf file. Something like this should do the trick although you may want to add more servers. server time.nist.gov driftfile /var/db/ntp.drift logfile /var/log/ntp.log authenticate no Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0209210019560.360-100000>