*BSD News Article 21900


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!uunet!mcsun!sun4nl!tuegate.tue.nl!news.win.tue.nl!wzv.win.tue.nl!gvr.win.tue.nl!guido
From: guido@gvr.win.tue.nl (Guido van Rooij)
Newsgroups: comp.os.386bsd.questions
Subject: Re: date is wrong
Date: 4 Oct 1993 22:07:48 GMT
Organization: Eindhoven University of Technology, The Netherlands
Lines: 39
Message-ID: <28q6rk$msi@wzv.win.tue.nl>
References: <28pa84$t24@Germany.EU.net> <28pc28$jub@genesis.ait.psu.edu>
NNTP-Posting-Host: gvr.win.tue.nl

D. Jay Newman <dn5@psu.edu> writes:

>In article <28pa84$t24@Germany.EU.net> Bernard Steiner, bs@Germany.EU.net
>writes:
>>I have a problem with the date (time, to be exact) on my machine.

>I have a similar problem.  I have recompiled the kernel, and I still
>can't get the date out of PST!

>Does anybody have any idea of how to get my date to display in EST?
You should link /etc/localtime to the appropriate file in /usr/share/zoneinfo

in my case that is:
	/etc/localtime -> /usr/share/zoneinfo/CET

Further, you might run into problems with dst. That is due to a patch not being
right for non-californian users. You should then comment the following piece of
code (/sys/i386/isa/clock.c):

#ifdef notdef
	/* XXX off by one? Need to calculate DST on SUNDAY */
	/* Perhaps we should have the RTC hold GMT time to save */
	/* us the bother of converting. */
	yd = yd / (24*60*60);
	if ((yd >= DAYST) && ( yd <= DAYEN)) {
		sec -= 60*60;
	}
#endif

>()()()()()()()()()()()()() ETS--Education Technology Services ()()()()()
>D. Jay Newman        !  We were all born to live with magic, the
>dn5@psu.edu          !  entire human race.  We're never mor

-Guido
-- 
Guido van Rooij                 |  Internet: guido@gvr.win.tue.nl
Bisschopsmolen 16               |  Phone:    ++31.40.461433
5612 DS Eindhoven               |  ((12+144+20)+3*sqrt(4))/7 
The Netherlands                 |    +(5*11)=9^2+0