🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54427

Re: Daylight Savings System Clock

#54427
From: Brendan O'Dea
Date: Thu, 30 Oct 1997 00:00
41 lines
2246 bytes
In article <636qru$o0j$1@gidora.kralizec.net.au>,
Nick Andrew <nick@zeta.org.au> wrote:
>In <636580$8sg@padre.unico.com.au> david@unico.com.au (David Goh) writes:
>
>>*nodnod* This is correct... *but* the reason why the machine had to be
>>on when the time changed over for him, is that he's probably got his
>>CMOS clock storing localtime, rather than UTC (GMT).
>
>I wondered if this was the case (and why anybody would want to do that :-))

This allows people to dual-boot broken operating systems[1] which
expect the CMOS clock to store localtime.  Some distributions
(Slackware at least) install this way by default :-(

Linux copes with CMOS clocks which hold localtime by converting the
value read at boot time to UTC (via ``/sbin/clock -s'').

Now this kludge only works if the CMOS clock has the correct localtime
at boot *including* daylight saving corrections.

In Sydney and Melbourne for example, the value read from a localtime
CMOS clock will now be adjusted by -11 hours at boot.  If that clock
still holds standard time (-10), the system's UTC value will be out by
one hour.

>but still couldn't think of a scenario where it would matter that the
>machine was not actually operating at the transition point.

It doesn't.  The machine in question could have been operating
correctly through the transition, but the next time it was re-booted
the clock would have been out[2].

[1] Such as Lose95.
[2] Unless ``clock -w'' was called before shutdown, or ``clock -a'' is
    set up to run periodically.

Regards,
-- 
Brendan O'Dea                                        bod@compusol.com.au
Compusol Pty. Limited                  (NSW, Australia)  +61 2 9809 0133
Technical Details
Message-ID: <639bv8$ba5$1@diablo.compusol.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <63184n$k92$1@news.mel.aone.net.au> <635op7$8e5$1@gidora.kralizec.net.au> <636580$8sg@padre.unico.com.au> <636qru$o0j$1@gidora.kralizec.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,eed5cd6c346d6c18
X-Google-Attributes: gid102983,public
From: bod@compusol.com.au (Brendan O'Dea)
Subject: Re: Daylight Savings System Clock
Date: 1997/10/30
Message-ID: <639bv8$ba5$1@diablo.compusol.com.au>
X-Deja-AN: 285984153
References: <63184n$k92$1@news.mel.aone.net.au> <635op7$8e5$1@gidora.kralizec.net.au> <636580$8sg@padre.unico.com.au> <636qru$o0j$1@gidora.kralizec.net.au>
Organization: Compusol Pty. Limited
Newsgroups: aus.computers.linux