🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #56369

Re: problem with setting date and time!

#56369
From: Andrew Hood
Date: Wed, 19 Mar 1997 00:00
60 lines
2808 bytes
In article <5ggqcs$lc@janis.virago.org.au>,
r.polanskis@nepean.uws.edu.au,grove@zeta.org.au wrote:

>Hi,
>Tonight, I had a serious problem caused by a bogus date setting on 
>my linux machine.
>
>I noticed it was one hour behind, and all the other boxes were correct, so
>I tried to reset the date
>using the date command - and I got the message the date I set was invalid.
>Then I noticed it had set the date back to the 16th of February, 
>which caused my proxy to repeatedly crash, and my mrtg logs got screwed up
>entirely, amonst other things. (yes I made sure I put March in there!)
>
>When I tried resetting the date again, It then set it to the 
>16 March 2000 EST which once again crashed my proxy and started annoying
>me no end.
>
>Next I tried using netdate, to set the date off a networked machine with 
>the correct time.
>Netdate did not work - the date it set was one hour behind the current
>time again!
>
>I took the last resort and rebooted linux (after 23 days uptime) and 
>went and looked in the CMOS - the time was correct, although the daylight
>saving option was disabled.  
>I reenabled daylight saving and reset the clock even though the time
>displayed was still the same, and then rebooted.
>
>After logging back in, I checked the date command again, and found I had
>finally got the correct time.
>
>I decided to try and synch with netdate again, and guess what?  It was 
>displaying one hour behind once more :(
>
>What's going wrong?  
>I have a TZ file in /usr/lib/zoneinfo/Australia, but I can't compile
>it since it is already compiled.
>
>When the daylight saving bug hit a few people a couple of weeks ago, this
>machine was unaffected.  It looks like it went and reset itself ahead of 
>time.  
>
>Where can I get a linux compatible current TZ file I can run zic over, 
>since the Sun ones I have don't work?
>

Is there a zone source file called australasia in the zoneinfo directory?
That is the source for Oz/NZ.

I have no trouble with Solaris source files, that might be where I got it.

What I want to know is how to get the CMOS clock to set from the system
clock set by xntp. I do a 'clock -uw' regularly from cron but it still
seems to drift off into la-la land.

-- 
DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams
Technical Details
Message-ID: <ajhood-1903972152170001@a1-p35.syd.fl.net.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <5ggqcs$lc@janis.virago.org.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,b47639e4cd97a46c
X-Google-Attributes: gid102983,public
From: ajhood@fl.net.au (Andrew Hood)
Subject: Re: problem with setting date and time!
Date: 1997/03/19
Message-ID: <ajhood-1903972152170001@a1-p35.syd.fl.net.au>
X-Deja-AN: 226698318
References: <5ggqcs$lc@janis.virago.org.au>
Organization: Westpac
Newsgroups: aus.computers.linux