System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we change the timezone

AdRao
Occasional Advisor

How can we change the timezone

Our HP-UX 11iv3 (IA) system shows the time zone CDT. Need to change to CST.

Currently our system shows:
#date
Tue Apr 13 14:15:18 CDT 2010

Need to change to CST.

Attached our /usr/lib/tztab file.

Kindly help with the right procedure.

Thnx,
Rao

5 REPLIES
HP-UX_Ali
Regular Advisor

Re: How can we change the timezone

HI Roa,

You can user set_parms timezone to select the required time zone.

Regards
Ali
Ganesan R
Honored Contributor

Re: How can we change the timezone

#set_parms timezone
Best wishes,

Ganesh.
Bill Hassell
Honored Contributor

Re: How can we change the timezone

The timezone is automatically translated by the TZ variable contents. You can use set_parms but it is easier to just edit the file:

/etc/TIMEZONE

and change it to:

TZ=CST6CDT
export TZ

Note also that users in other timezones that use this machine can set the TZ value to their local timezone and the date will be adjusted automatically.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: How can we change the timezone

>Tue Apr 13 14:15:18 CDT 2010
>Need to change to CST.

Is this for Australia? If you have the correct tztab(4) it should set the correct timezone.
CST-9:30CDT ?
Suraj K Sankari
Honored Contributor

Re: How can we change the timezone

Hi,

Command set_parms or you can use SAM,
I would you SAM is the best tool to do this.

Suraj