Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Hiren N Dave
HPE Pro

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