Operating System - HP-UX
1752276 Members
4948 Online
108786 Solutions
New Discussion

Re: Change timezone in HP UX 11.31

 
SOLVED
Go to solution
satget
Occasional Advisor

Change timezone in HP UX 11.31

Hi,

 

Anybody knows how to change timezone in HP-UX 11.31? I want to change it to Australian timezone from default.

 

Thanks,

Sathish

3 REPLIES 3
Hiren N Dave
Valued Contributor

Re: Change timezone in HP UX 11.31

Hi,

 

You can change time zone in /etc/TIMEZONE file directly or using below command.

 

# set_parms timezone

 

 

Cheers.

I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Dennis Handly
Acclaimed Contributor

Re: Change timezone in HP UX 11.31

Or on a per user basis, you export TZ to the desired zone:

CST-9:30CDT

EST-10EDT

NZST-12NZDT

EST-10EDT#Tasmania

EST-10EDT#NSW

EST-10EDT#VIC

WST-8WDT

Matti_Kurkela
Honored Contributor
Solution

Re: Change timezone in HP UX 11.31

"set_parms timezone" was already covered: that is the standard way to change the system default timezone.

 

But if you're running legacy software, you might need to change kernel parameters "timezone" and "dst" to match the new timezone setting. These parameters are deprecated and should no longer be used by modern software, and certainly aren't used by the HP-UX itself any more. (If you find that an application still uses these values, consider filing an enhancement request to the makers of the software, if possible.)

 

The value of the kernel parameter "timezone" is the UTC offset, expressed as number of minutes west of UTC; as Australia is located in the Eastern Hemisphere, this will be a negative number. It should match your Standard timezone offset, not the DST one.

 

The kernel parameter "dst" specifies the DST transition schedule. For Australia, the correct value is 2.

 

Run "kctune -d timezone dst" to see the current values and their descriptions. To change the values, you can use either the kctune command or SMH.

MK