Re: Clock not reset

Riley Williams (rhw@BigFoot.Com)
Tue, 6 Apr 1999 23:56:40 +0100 (GMT)


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...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
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/