<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2>Here's the situation...<BR>I have an 
OpenBSD system that is used by several staffers in the US and Europe. <BR>The 
server is set to use GMT as the localtime, but I would like to have a bash 
prompt that displays the users time for their timezone.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>I assume, possibly incorrectly, that I will 
have to set the TZ environ variable for the user via a login script, and then 
use /t (or /T, or /@) to display the time in the prompt, and echo the setting 
for the TZ environ variable to indicate their timezone.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>I have two problems:<BR>1) I can't figure 
out which dot file I should set the TZ prompt from.<BR>   I've tried 
the following (assuming US Eastern as the 
timezone):<BR>        in .bashrc and 
.bash_profile<BR>                        
TZ=:/US/Eastern <BR>        
and<BR>            
TZ=/usr/share/zoneinfo/US/Eastern</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" 
size=2>                
in .login and 
.profile<BR>                        
TZ=:/US/Eastern<BR>                        
export 
TZ<BR>                
and<BR>            
TZ=/usr/share/zoneinfo/US/Eastern<BR>            
export TZ</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>    But to no avail. The 
time is still returned using GMT as set with 
/etc/localtime.<BR>    Perhaps I am misreading the various Bash 
HOWTO's...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>2) I don't know how to echo the TZ 
environment variable in a prompt, can't find a reference for doing it, and don't 
even know if it's possible... Any information you can provide would be 
helpful...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>Thanks,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>Jaimie 
Livingston<BR>jaimie.livingston(at)haht.com</FONT></DIV></BODY></HTML>