lkml.org 
[lkml]   [1996]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: time problems in 1.3.77
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 ;-)
\____________________________________



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.080 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site