Re: Change timezone in HP UX 11.31 (12749 Views)
Occasional Advisor
Posts: 11
Registered: ‎07-18-2011
Message 1 of 4 (12,764 Views)
Accepted Solution

Change timezone in HP UX 11.31



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




HP Pro
Posts: 97
Registered: ‎04-10-2006
Message 2 of 4 (12,762 Views)

Re: Change timezone in HP UX 11.31



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


# set_parms timezone




I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Acclaimed Contributor
Posts: 25,896
Registered: ‎03-06-2006
Message 3 of 4 (12,754 Views)

Re: Change timezone in HP UX 11.31

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








Honored Contributor
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 4 (12,749 Views)

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.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.