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

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

HP Pro
Hiren N Dave
Posts: 97
Registered: ‎04-10-2006
Message 2 of 4 (11,112 Views)

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.
Acclaimed Contributor
Dennis Handly
Posts: 25,188
Registered: ‎03-06-2006
Message 3 of 4 (11,104 Views)

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

Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 4 of 4 (11,099 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.

MK
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.