Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA2290 ; Mon, 01 Mar 93 10:52:32 EST Newsgroups: comp.os.386bsd.misc Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!pipex!pavo.csi.cam.ac.uk!camcus!pc123 From: pc123@cus.cam.ac.uk (Pete Chown) Subject: Re: bsd has wrong date (-1 day) In-Reply-To: bde@runx.oz.au's message of Wed, 24 Feb 93 00:08:04 GMT Message-ID: <PC123.93Feb25224619@bootes.cus.cam.ac.uk> Sender: news@infodev.cam.ac.uk (USENET news) Nntp-Posting-Host: bootes.cus.cam.ac.uk Organization: U of Cambridge, England References: <hg926cy.730393047@unidui> <PC123.93Feb22211035@bootes.cus.cam.ac.uk> <1993Feb24.000804.19805@runx.oz.au> Date: Thu, 25 Feb 1993 22:46:22 GMT Lines: 50 In article <1993Feb24.000804.19805@runx.oz.au> bde@runx.oz.au (Bruce Evans) writes: I'm not sure what Pete means by "timezone file". I mean /usr/othersrc/share/zoneinfo/europe (or whatever your continent is). If you install the software timezone support, you can make changes without having to fudge the kernel. For the kernel, the timezone adjustment should be made to the kernel config file (+- 24 hours). Probably you can do this as well - I don't know. >Incidentally the timezone module assumes you have (I think) Pacific >time set in your CMOS, and want this corrected before being used. In It assumes GMT. Perhaps the kernel assumes GMT. I can't remember what it was like before I installed the timezone code. Certainly the software module assumes Pacific time, though, because I had no end of trouble convincing it that I wanted the letters GMT appended to times, but did not want any offset adding to the CMOS clock time. If it had assumed GMT, I could have just put a zero there. 2. Local time file (/etc/localtime). This contains data to convert from kernel time (GMT) to local time. Usually it is a symlink to a timezone file for your locality. You have to change the symlink when installing the system. Mmm. By compiling your timezone file. Getting the kernel timezone adjustment right is too hard. There are good reasons why the timezone database is so large. For adjusting from local time to GMT, I suggest the following method: a. For booting the kernel, assume the clock is on GMT. b. In /etc/rc, run a utility to correct the kernel time by the difference between local time and GMT. No - it's quite possible to get it right. You don't have to edit the kernel, you just change the appropriate file under .../zoneinfo, and you are away. You seem to be saying that I am wrong about how to change the timezone! But I'm not, because it worked! -- ---------------------------------------------+ "A tight hat can be stretched. Pete Chown, pc123@phx.cam.ac.uk (Internet) | First damp the head with steam pc123@uk.ac.cam.phx (Janet :-) -+ from a boiling kettle."