1824721 Members
3632 Online
109674 Solutions
New Discussion юеВ

ENVironment Variable TZ

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

ENVironment Variable TZ

I am hoping someone would like to clarify something for me. We have an 800 series ux machine + UX 11.00 OP sys. Our TZ variable is
TZ=EST-10EDT. Timezone appears to be set for 'mountain' - 420 minutes west of GMT. DST = 1. We are in Sydney, Australia. Do these settings appear to be correct for this region?

Thanks in advance for any info...
Maria.
5 REPLIES 5
Michael Tully
Honored Contributor

Re: ENVironment Variable TZ

Hi Maria,

Your settings should be as follows:

/etc/profile
# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
else
TZ=EST-10EDT # change this for local time.
export TZ

Contents of /etc/TIMEZONE
$ more /etc/TIMEZONE
TZ=EST-10EDT
export TZ

Also you can check each user, by typing in:

# echo $TZ

HTH
~Michael
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: ENVironment Variable TZ

According to the comments in /usr/lib/tztab, that is correct. The man page for tztab and the comments in the file are good for help on timezones (political as they may be).


Bill Hassell, sysadmin
Peter Gillis
Super Advisor

Re: ENVironment Variable TZ

Michael, It appears the only difference we have to your info is in the else statement of the TIMEZONE portion of /etc/profile. We have ... else
TZ=MST7MDT
export TZ
fi
This would appear to be the Mountain standard time... If I change this to TZ=EST-10EDT would this not change back to MST7MDT during a system reboot because the kernel parms have somehow got this Mountain paratmeter set? The /etc/TIMEZONE file is set to EST-10EDT.
Thanks for help and also thanks to Bill for your info also.

Maria.
Michael Tully
Honored Contributor
Solution

Re: ENVironment Variable TZ

Hi Maria,

Making that change will not change back during a system reboot. Unfortunately the 'MST' time is one that comes with the system. If the TZ is not fixed properly during a system installation, problems like this can occur.
The '/usr/lib/tztab' should not be changed unless there is a change to the dates designated by Bob Carr and his merry men. Let me know if you need further help.

Cheers
Michael
Anyone for a Mutiny ?
Peter Gillis
Super Advisor

Re: ENVironment Variable TZ

Michael,
Thankyou for all your info and patience. Info from here has been invaluable.

Thanks.
Maria.