home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!homer.cs.mcgill.ca!news
- From: guest@chopin.Physics.McGill.CA (Muhep Guest account)
- Newsgroups: comp.os.linux
- Subject: Re: How to set timezone?
- Message-ID: <1992Aug26.224846.6818@cs.mcgill.ca>
- Date: 26 Aug 92 22:48:46 GMT
- References: <1992Aug24.214905.18331@mnemosyne.cs.du.edu>
- Sender: news@cs.mcgill.ca (Netnews Administrator)
- Organization: SOCS, McGill University, Montreal, Canada
- Lines: 25
-
- David Black writes
- >
- > I compiled and installed the timesrc.tar.Z package in the sources
- > collection to handle the HW clock and timezones. Login.c from the
- > poeigl utils package has MET1DST (+1 hr. GMT) hard-coded in, possibly
- > as a default if it can't find the environment var TZ. I just changed
- > that timezone to PST8PDT and now last login times are correct also.
-
- Its even easier than that. When you install the timesrc stuff, you get a
- bunch of timezone files in /usr/lib/zoneinfo (or maybe you have to move
- them there by hand, I forget). Then all you have to do is make a link
- from the zone you're in to localtime, such as
- cd /usr/lib/zoneinfo
- ln -s Canada/Eastern localtime
- and everything is hunky-dory.
-
- This way, you don't need to set the TZ environment variable at all.
-
- You may have to rip out the code that sets the TZ variable from login.c,
- where it doesn't belong in the first place.
-
- > dlbb0@diag.amdahl.com.
-
- Steve Robbins
- steve@nyongwa.cam.org, despite what the header says
-