Operating System - HP-UX
1834752 Members
3048 Online
110070 Solutions
New Discussion

help with time zone change

 
Edwin Reardon
Occasional Contributor

help with time zone change

Would like to know how to change the time zone on hp-ux 11i . We have 2 machines one is set correctly: echo $TZ = GMT0BST, the second machine is EST5EDT. Need to change second machine from EST5EDT to GMT0BST.

Thanks
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: help with time zone change

Probably the easiest way is to use "/sbin/set_parms timezone". I suspect it will want you to reboot the machine.


Pete

Pete
Tim Nelson
Honored Contributor

Re: help with time zone change

What about /etc/TIMEZONE as well? (maybe set_parms changes this to ?)

/etc/profile reads this and if not there then sets it itself.
Pete Randall
Outstanding Contributor

Re: help with time zone change

Yes, a quick test shows that /sbin/set_parms changes /etc/TIMEZONE.


Pete

Pete
OldSchool
Honored Contributor

Re: help with time zone change

set_parms updates / creates the TIMEZONE file if needed

or you can run

/sbin/set_parms timezone

sets only the timezone w/o prompting about (or changing) other settings
Pete Randall
Outstanding Contributor

Re: help with time zone change

set_parms vs /sbin/set_parms?? What's the difference?


Pete

Pete
OldSchool
Honored Contributor

Re: help with time zone change

"set_parms vs /sbin/set_parms?? What's the difference?"

Uhh... they're the same [ as I think you know :-) ]. I got a phone call while I was responding, so I a) didn't see your answer and b) missed the fact that you had spec'd the "timezone" option in your reply, instead of just running "set_parms"...

Pete Randall
Outstanding Contributor

Re: help with time zone change

Oh!! I thought maybe there was some secret difference I was unaware of.


Pete

Pete