Re: time problems in 1.3.77

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Mon, 1 Apr 1996 11:29:28 +0100 (BST)


On Mon, 1 Apr 1996, Ulrich Windl wrote:

> (Since Sunday we have "Sommerzeit" (Daylight Saving Time) in Germany)
> My CMOS clock runs local time (not UTC). As we had to advance the
> local clocks in germany by one hour, I thought it's a nice idea to
> correct my clock by using a DCF77 (German reference clock) receiver
> and a little program (.../xntp/parse/util/dcfd.c) to do that. This
> program sets the time using settimeofday().
>
> As Linux knows about our timezone (MET or MET DST), the time was
> rather correct when I started. After the program was running for some
> time (> 30 minutes), the clock seemed to be ok, but after reboot I
> had discovered that the clock was still one hour behind. Obviously
> there's something wrong in kernel/time.c. I don't know what it is
> exactly, but the CMOS clock isn't updated properly.
>
> One problem seems to be that the warp_clock() depends on a _local_
> flag in sys_settimeofday(). If you have a continuously running
> system, you will have to "re-warp" the clock at beginning/end of DST.

Did you do a clock -w to write the system time (in Linux), to the CMOS
clock ?
Bryn

--
PGP key pass phrase forgoten,    \ Overload -- core meltdown sequence 
again :(                          |            initiated.
                                 / This space is intentionally left   
                                |  blank, apart from this text ;-)
                                 \____________________________________