Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 1999 17:38:42 +0000
From:      Scott Mitchell <rsm@acm.org>
To:        The Classiest Man Alive <ksmm@threespace.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Windows vs. FreeBSD: Changing Times
Message-ID:  <19990327173842.27931@goatsucker.org>
In-Reply-To: <Version.32.19990326112256.00f454a0@mail.cybercom.net>; from The Classiest Man Alive on Fri, Mar 26, 1999 at 11:36:48AM -0500
References:  <Version.32.19990326112256.00f454a0@mail.cybercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 26, 1999 at 11:36:48AM -0500, The Classiest Man Alive wrote:
> This happens to me every year.  This year I figured I'd ask the experts
> (that means YOU) if there was a simple solution to this problem.
> 
> Daylight Savings Time in the US begins next Sunday, April 4th.  As you may
> remember this means setting every clock, watch, and VCR in your home
> forward by one hour at 2:00 AM on that day.  Depending on how many clocks
> you have, it's tedious, but not exactly strenuous.
> 
> That is, unless you have a computer that can dual boot between Windows and
> FreeBSD.  For those of you who don't know, Windows will automatically
> change your CMOS clock to reflect the correct time after the time change.
> Or you can do it manually.  Either way, that clock needs to be set to the
> correct local time in order for the Windows system time to be reflected
> correctly.
> 
> Unfortunately, FreeBSD seems to do an intelligent translation that
> automatically adds one hour to the CMOS time during the Daylight Time
> period.  This is all good, except that when Windows sets the clock ahead
> one hour and then FreeBSD adds one hour in software...well, you see where
> this is going.  Somebody (Windows or FreeBSD) is going to have the wrong time.
> 
> Is there a simple way around this problem?  Can I tell FreeBSD that even
> though we're in Daylight Time that it should take the CMOS clock as the
> current local time?

Since no-one else seems to want to just tell you the answer....

Just create an empty file /etc/wall_cmos_clock -- FreeBSD will then believe 
that whatever the CMOS gives it is the right time.  It'll still give you
the correct timezone when displaying dates though.

Then you can let Windows do whatever the h*ll it wants.  Yet another
example of there being a right way and a wrong way to do things, and MS
picking the wrong way :)

	Scott
-- 
===========================================================================
Scott Mitchell          | PGP Key ID |"If I can't have my coffee, I'm just 
<scott@dcs.qmw.ac.uk>   | 0x54B171B9 | like a dried up piece of roast goat"
QMW College, London, UK | 0xAA775B8B |     -- J. S. Bach.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990327173842.27931>