Operating System - HP-UX
1833803 Members
2422 Online
110063 Solutions
New Discussion

Re: How to change the TIMEZONE?

 
Chen Yingjie
Frequent Advisor

How to change the TIMEZONE?


We have testing server configured as HONGKONG server, but its timezone was set as Singpore Local Time.
(The OS is HP-UX 11.00)

Please advice us how to change it.

Thanks

7 REPLIES 7
KCS_1
Respected Contributor

Re: How to change the TIMEZONE?

hi,

# set_parms timezone

in addition

you can set time

# set_parms time



have a good day!
Easy going at all.
Sridhar Bhaskarla
Honored Contributor

Re: How to change the TIMEZONE?

Hi,

Use 'set_parms timezone' to get it changed.
Timezone is simply relative. A user can change his/her timezone anytime by export TZ variable.

Above command will change the timezone systemwide.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: How to change the TIMEZONE?

The correct way is to use the set_parms script

# set_parms timezone

A good way of checking is have a look at the /etc/TIMEZONE file after the change. You could also manually change the /etc/profile file to use the same timezone should you wish.

Regards
Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: How to change the TIMEZONE?

#set_parms timezone

should be the case

I think it will require a reboot for to take the timezone into effect.

Plan a downtime
Michael Tully
Honored Contributor

Re: How to change the TIMEZONE?

Be aware that the man page for 'set_parms timezone' states that a reboot is required.

# man set_parms
Anyone for a Mutiny ?
Animesh Chakraborty
Honored Contributor

Re: How to change the TIMEZONE?

Hi,
Hongkong and Singapore are in same time zone.What is your problem?
check the file /etc/TIMEZONE
TZ=SST-8
export TZ

the in you /etc/profile
# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
else
TZ=MST7MDT # change this for local time.
export TZ
fi
Did you take a backup?
Chen Yingjie
Frequent Advisor

Re: How to change the TIMEZONE?

Thank your all for your quickly response.

chen