Re: Clock not reset

Matthew D. Pitts (mpitts@suite224.net)
Tue, 6 Apr 1999 22:01:26 -0400


Riley,

> Hi there.
>
> > While I'm mailing the list, Daylight saving's time just came
> > about. Linux automatically updated the time (or perhaps a daemon
> > I'm unaware of), however when I rebooted the time went back an
> > hour (e.g. the system clock wasn't changed). This happened on
> > both of my Linux boxes. When I used date --set to set the time,
> > the time went back an hour when I rebooted (both boxes). My
> > question is, is this a date problem, a Linux problem, or a BIOS
> > problem?
>
> Sounds like you have your system set so the hardware clock runs in
> non-UTC mode, possibly because you also have Win9x present and it
> requires that?
>
> My fix was to add the following command to the shutdown script:
>
> Q> hwclock --systohc
>
> This has the effect of resetting the hardware clock to the system
> clock time at that point, so avoids such problems...
My system runs Win 95 + Redhat 5.0 and the clock shows EDT in both OS's. I
haven't checked the scripts, so RH might preset something like what you
show.

Matthew D. Pitts
mpitts@suite224.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/