*BSD News Article 23318


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!math.fu-berlin.de!news.tu-chemnitz.de!irz401!uriah!not-for-mail
From: j@bonnie.tcd-dresden.de (J Wunsch)
Newsgroups: comp.os.386bsd.questions
Subject: Re: *BSD: system time and all the rest
Date: 4 Nov 1993 19:32:25 +0100
Organization: Textil Computer Design GmbH Dresden, Germany
Lines: 23
Message-ID: <2bbhrpINNn7k@bonnie.tcd-dresden.de>
References: <CFq1z9.65@luva.stgt.sub.org> <1993Nov1.152238.22613@sophia.smith.edu>
NNTP-Posting-Host: bonnie.tcd-dresden.de

jfieber@sophia.smith.edu (J Fieber) writes:

>>My CMOS clock is set to GMT, my timezone is 1 hour earlier
>>and so I config'ed my kernel to -1 (note: w/o dst).

>...  This is because of an ugly
>(and fortunately easy to remove) hack in /sys/i386/isa/clock.c
>that blindly assumes that between the 119th and 303rd day of the
>year, the CMOS clock is set one hour ahead of standard time.
>Whether or not you have dst set in your kernel config has no
>bearing on it at all.  Send e-mail if you would like more info or
>patches.  

Yes, simply removing three lines of code (around the `off by one' comment)
solves the problem for clocks running UTC.
The problem is more complex for other cases, it's been discussed in the
FreeBSD hackers' list, there are patches, but have been too late for the
1.0 release (since there had been more important problems to solve).
-- 
in real life: J"org Wunsch |   )  o o  | primary: joerg_wunsch@tcd-dresden.de
above 1.8 MHz:   DL 8 DTL  |    )  |   | private: joerg_wunsch@uriah.sax.de
                           | . * ) ==  |
          ``An elephant is a mouse with an operating system.''