timezone conflicts

2005-09-24 Thread Archaic
I need a computer to log everything as UTC. I need the users to be able to choose their own timezone. Easy enough. I cp /usr/share/zoneinfo/UTC to /etc/localtime and set TZ in ~/.bash_profile to EST. The problem is with the bash prompt which I have set to display the time. According to info bash.

Re: timezone conflicts

2005-09-24 Thread Dan McGhee
Archaic wrote: I need a computer to log everything as UTC. I need the users to be able to choose their own timezone. Easy enough. I cp /usr/share/zoneinfo/UTC to /etc/localtime and set TZ in ~/.bash_profile to EST. The problem is with the bash prompt which I have set to display the time.

Re: timezone conflicts

2005-09-24 Thread Archaic
On Sat, Sep 24, 2005 at 04:29:34PM -0500, Dan McGhee wrote: Could you set `date %Z whatever time zone` in .bashrc or .bash_profile for each user? Or PS1 for each user in this format? %Z doesn't actually set or change anything. It just causes the timezone value to be shown. -- Archaic Want

Re: timezone conflicts

2005-09-24 Thread Ken Moffat
On Sat, 24 Sep 2005, Archaic wrote: On Sat, Sep 24, 2005 at 04:29:34PM -0500, Dan McGhee wrote: Could you set `date %Z whatever time zone` in .bashrc or .bash_profile for each user? Or PS1 for each user in this format? %Z doesn't actually set or change anything. It just causes the timezone

Re: timezone conflicts

2005-09-24 Thread Dan McGhee
Archaic wrote: On Sat, Sep 24, 2005 at 04:29:34PM -0500, Dan McGhee wrote: Could you set `date %Z whatever time zone` in .bashrc or .bash_profile for each user? Or PS1 for each user in this format? %Z doesn't actually set or change anything. It just causes the timezone value to be

Re: timezone conflicts

2005-09-24 Thread Dan McGhee
Archaic wrote: On Sat, Sep 24, 2005 at 04:45:31PM -0500, Dan McGhee wrote: Yeah, I know. But if you put the output of this command in someone's profile, wouldn't the time be displayed in, say, EDT for that user? A quick scan--not a thorough read--in my references gave me that impression.

Re: timezone conflicts

2005-09-24 Thread Archaic
I should point out that if you are doing weird things like putting variables in your PS1, those variables won't be expanded unless you use double quotes (which is what I've always done). The reason I mention this is that 2 hours later it was pointed out to me that the time never updates on the