1833863 Members
2354 Online
110063 Solutions
New Discussion

Time Zones

 
SOLVED
Go to solution
Robert Anderson
Advisor

Time Zones

In an HPUX 11.00 environemnt, we are running Oracle. When I sign on as root, it shows I am in the Pacific Timezone. If I login as any other user, it shows Eastern Timezone. The timezone does not show up in env for users other than root. System time is set up as Pacific. Any ideas what may be causing this? I cannot simply export TZ because it is the Oracle user starting Oracle processes. Any help is greatly appreciated. Thanks
Don't think meat! It can only hurt the team!
7 REPLIES 7
Dario_1
Trusted Contributor

Re: Time Zones

Robert:

Check the user.profile and /etc/profile to see from where the TZ is getting exported.

Regards,

DR
Uday_S_Ankolekar
Honored Contributor

Re: Time Zones

Check /etc/TIMEZONE file and /etc/profile file.

-USA..
Good Luck..
James R. Ferguson
Acclaimed Contributor

Re: Time Zones

Hi Robert:

The TZ variable is globally set in '/etc/TIMEZONE'. This file is sourced by '/etc/profile' during login if it is available and readable. Otherwise a default value may be established.

Look at '/etc/TIMEZONE', '/etc/profile' and the $HOME/.profile of your users.

Regards!

...JRF...
Robert Anderson
Advisor

Re: Time Zones

This is what's in /etc/profile:
# Set the TIMEZONE

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

/etc/TIMEZONE is set to PST8PDT
Don't think meat! It can only hurt the team!
James R. Ferguson
Acclaimed Contributor
Solution

Re: Time Zones

Hi (again) Robert:

OK, see the patch notes for PHCO_23652. This patch appears to address your situtation:

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_23652&context=hpux:800:11:00

Regards!

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: Time Zones

ls -la /etc/TIMEZONE
It works for me (tm)
Robert Anderson
Advisor

Re: Time Zones

Thank you very much for all who assisted. The problem is solved!
Don't think meat! It can only hurt the team!