Kernel Time and DST

From: Christos Dimitrakakis (olethrosdc_at_oohay.com)
Date: 12/15/03


Date: Mon, 15 Dec 2003 14:34:14 +0100

I had RH9 installed this summer on my system. Ever since the change from
DST to normal time there had been a problem with the kernel time. This is
what happens.

I boot up the system. Checking the BIOS settings, the hw clock says the
correct time, say 10:00. I am on CET, which is UCT+1.

When the kernel boots up it says:
Setting clock (localtime) : 10:00 UCT
After boot has finished, date says: 11:00 CET, which is wrong.

I tried setting TZ=Europe/Zurich in rc.sysinit, just before the hwclock
call. Looking at the hwclock arguments, they are: --localtime --hctosys.
Debug output from hwclock says that minadjust is -60min, which is
correct.

Furthermore, after booting has finished, calling hwclock with the same
arguments gives me the correct time. I have no idea why the time is
incorrect when the kernel boots up and yet it is correct afterwards. Can
someone help?

Cheers, Christos

-- 
Christos Dimitrakakis
IDIAP (http://www.idiap.ch/~dimitrak/main.html)


Relevant Pages

  • RE: ipw2100: firmware problem
    ... >> kernel, it is loaded while kernel boots and firmware loader ... When moving from modes with the firmwares, would I have to do ifconfig eth1 ...
    (Linux-Kernel)
  • Re: 2.6.13.1 - Failed boot of "kdump" kernel
    ... I did not properly specify the kernel ... the kernel boots fine. ... > Enabling unmasked SIMD FPU exception support... ...
    (Linux-Kernel)
  • Re: no backlight on radeon after recent kernel "upgrade"s
    ... tried few times to build more recent snapshots and now finally ... kernels (with all backlight support features disabled kernel boots ...
    (Linux-Kernel)
  • Re: system (not HW) clock advancing really fast
    ... > Kernel version: ... > system clock gaining seconds very quickly. ... If I sync from hwclock or ntpdate every second, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Linux 11-minute mode (RTC update)
    ... The RTC has been good the last time it was written, ... Only hwclock can compensate this drift at best. ... and kernel initialisation alone can't. ... How does hwclock know when the RTC was updated last? ...
    (comp.protocols.time.ntp)