home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9156 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.5 KB

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