From owner-freebsd-questions Fri Sep 20 15:45:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 937A737B404 for ; Fri, 20 Sep 2002 15:45:51 -0700 (PDT) Received: from mailhost.gu.edu.au (kraken.itc.gu.edu.au [132.234.250.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C58543E65 for ; Fri, 20 Sep 2002 15:45:50 -0700 (PDT) (envelope-from steve@cit.gu.edu.au) Received: from hobbit.cit.gu.edu.au (IDENT:t3zE9UEG2lHDshRPUZrm9k9aoDyk5GV5@hobbit.cit.gu.edu.au [132.234.86.7]) by mailhost.gu.edu.au (8.10.1/8.10.1) with ESMTP id g8KMjnC06629; Sat, 21 Sep 2002 08:45:49 +1000 (EST) Received: from localhost (steve@localhost) by hobbit.cit.gu.edu.au (8.11.6/8.11.6) with ESMTP id g8KMjmw07908; Sat, 21 Sep 2002 08:45:48 +1000 Date: Sat, 21 Sep 2002 08:45:48 +1000 (EST) From: Steven Goodwin To: Len Conrad Cc: freebsd-questions@FreeBSD.ORG Subject: Re: time off by 30 minutes In-Reply-To: <5.1.0.14.2.20020920091303.04382968@mail.Go2France.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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