Re: FYI: /etc/localtime and changing to summer time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Saltzman wrote/ha scritto, On/il 29/03/2004 01:13:



The permission issue referred to elsewhere notwithstanding (I haven't run
into it), I think what happens is this:

Case 1: The hardware clock is local time.

- Windows: Windows always displays proper local time.  If powered on
at 2am on time change night, Windows adjusts the system clock and the
hardware clock.  If powered off at 2am, Windows adjusts both clocks on
next bootup, so you had better not adjust the hardware clock when booting.
(I think auto correction can be turned off in the clock config screen.)  I
think that any attempt to set the system clock in Windows will reset the
hardware clock as well.

- Linux: /etc/sysconfig/clock has UTC=no.  Then Linux displays the correct
time before the change.  If powered up at change time, Linux adjusts
automatically and displays the correct system time.  When next rebooted,
the correct system time is saved to the hardware clock.  If powered off at
change time, Linux will assume the local clock is correct, so you had
better adjust it before booting.  If you do adjust the clock, then the
first boot of Windows after the change will incorrectly attempt to adjust
the already adjusted clock (unless disabled).

Case 2: The hardware clock is UTC.

- Linux: /etc/sysconfig/clock contains UTC=yes. System clock will always
show correct local time no matter what.  Hardware clock will be set to UTC
on shutdown/reboot.

- Windows: Can't handle a UTC hardware clock unless the Windows timezone
is GMT with no daylight adjustment.

I don't boot into Windows often, so my current solution is to leave the
hardware clock in UTC and set the Windows's timezone to GMT with no DST
adjustment.  I think the only problem with this arrangement is that the
Windows system doesn't display the correct local time.  So I wear a watch.



Matthew...tnx for your clear explanations.
I switched to case 2 and bought a new watch!!! ;-) in case I use Windows


--
Antonio Montagnani
=======================================================
Working with Mozilla 1.6 on Linux Fedora Core 1
=======================================================
  Utilizzo Mozilla 1.6 su Linux Fedora Core 1
=======================================================



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux