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.
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.
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
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
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
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.
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