1846636 Members
1617 Online
110256 Solutions
New Discussion

Time problem

 
YOGI_3
Frequent Advisor

Time problem

Where can we set Time Zone for users.
I have checked in .profile for that users..
there is no entry for TZ variable.

Waitigng for reply..

Thanks,
There is never a wrong time to do the right things
5 REPLIES 5
saju_2
Respected Contributor

Re: Time problem

Hi yogi

U can put it as an enviornment variable for each users. If it is not there then it takes from etc/default/tz.


There is a Itrc thread which disscuss about TZ variable in detail and Bill has mentioned about this variable clearly.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=955491

Regards
CS
njia_1
Trusted Contributor

Re: Time problem

Hi

cd /etc
./set_parms timezone

or change /etc/TIMEZONE file

TZ=EST-10EDT
export TZ
this will set current time zone to Australia East standard time. This setting is system wide, I do not think each individaul users can set his/her own time zone

Usually after changing TZ you need to reboot the platform.
Yogeeraj_1
Honored Contributor

Re: Time problem

hi,

see /etc/profile (applies to most users)

somewhere it will refer to:
. /etc/TIMEZONE


hope this helps!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
VEL_1
Valued Contributor

Re: Time problem

Muthukumar_5
Honored Contributor

Re: Time problem

Timezone will be set using /etc/profile.

-- /etc/profile --

# Set the TIMEZONE

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

You can set user spefic with /etc/profile or .profile file using TZ enviornment variable.

hth.
Easy to suggest when don't know about the problem!