Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!nosc!crash!nusdecs!rwhite From: rwhite@nusdecs.uucp (0257014-Robert White(140)) Newsgroups: comp.unix.sysv386 Subject: Re: Sysv/386 and Daylight savings time Message-ID: <1990Nov15.001314.29319@nusdecs.uucp> Date: 15 Nov 90 00:13:14 GMT References: <16354@s.ms.uky.edu> <1990Nov13.005923.24658@ico.isc.com> Distribution: na Organization: National University San Diego Lines: 35 In article <1990Nov13.005923.24658@ico.isc.com> rcd@ico.isc.com (Dick Dunn) writes: >I've often wished there were an option to keep the CMOS clock on GMT. >Yeah, I know...that would make times look funny in DOS...but I don't use >DOS, so I don't care. Seems a pity that the problem arises even tho UNIX >is perfectly capable of dealing with the DST silliness. Tisk tisk tisk, minus three points for not paying attention... To keep GMT in you CMOS clock but still get useful dates when you log in, do the following: file /etc/TIMEZONE: TZ=GMT export TZ file /etc/default/login (I think): TZ=(your favorite time zone here) When you log in you will have the correct "local" time used for all dating operations (file stat and such) but the system will use GMT for system-wide activities. You may want to reset TZ for cron in it's startup script to mke you life easier, but other than that this is a no-brainer. The system converts in and out of GMT anyway. The above just gets it to store the base time as GMT in the CMOS without worrying about it ever again. ******************************************************************* Robert White | Not some church, and not the state, Network Administrator | Not some dark capricious fate. National University | Who you are, and when you lose, crash!nusdecs!rwhite | Comes only from the things you chose. (619) 563-7140 (voice) | -- me. *******************************************************************