From: baron@clifton.hobby.nl (Wim `Blue Baron' van Dorst) Subject: Re: Date command only uses GMT Date: Fri, 2 Apr 1993 17:45:59 GMT
: In article <1pdm69INNsnp@crcnis1.unl.edu> jbettis@cse.unl.edu (Jeremy Bettis) writes:
: >I have been unable to get the date command to display the correct timezone.
: >I edited the /etc/login.defs file and set the ENV_TZ variable.
John Paul Morrison (jmorriso@rflab.ee.ubc.ca) wrote:
: arrrg!! dont use TZ.
: you should go into /usr/lib/zoneinfo and make a link from your timezone
: to localtime (and posixwhatever....).
Why not? It's real Posix, and as far as I can see it it well implemented.
I have in my /etc/rc, before any other command:
export TZ=MET-1MDT,M3.5.0,M9.5.0
which sets the timezone correct for all the daemons and other programs
spawned from that /etc/rc: update mount swapon cron inet-stuff.
Then for each user I have in the /etc/profile
export TZ=MET-1MDT,M3.5.0,M9.5.0
which set the TZ environment variable to a proper default. Of course people
logging in from other timezone areas (Hmm, a PC without Internet, I wonder
how, but that is beside the point) can set their own TZ variables to
whichever timezone their interested in.
The above works perfect. Note that the hardware clock is set to GMT.
Met vriendelijke groeten, Wim `Blue Baron' van Dorst
=====================================================================
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-: baron@clifton.hobby.nl tgcpwd@urc.tue.nl :-)
=====================================================================