1833019 Members
1839 Online
110049 Solutions
New Discussion

Re: time change

 
SOLVED
Go to solution
Betty Fessler
Frequent Advisor

time change

How do you change to GMT time on an rp3410 running HP-UX.B.11.11 OE, 9000/800
4 REPLIES 4
baiju_3
Esteemed Contributor

Re: time change

hi use ,

#set_parms timezone


thx,
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Devender Khatana
Honored Contributor

Re: time change

Hi,

As posted above.

#set_parms timezone

will do this for you.

But requires a reboot for the changes to take effect.

HTH,
Devender
Impossible itself mentions "I m possible"
Kent Ostby
Honored Contributor

Re: time change

Betty --

If you want to change it for the user, you would modify the TZ value in the profile.

If you are changing it for the whole system, you would have to modify it in the /etc/profile file.

see man tztab for more details

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: time change

Edit the file /etc/TIMEZONE and set TZ=GMT0. This will be the default TZ for the system but might be overriden in the .profile of each user. It's not unusual for a UNIX to serve users all around the globe with different TZ's for each. In a very real sense, you don't have to do anything because the system always is in UTC (GMT, almost) and simply counts seconds since Jan 1, 1970 00:00:00; TZ only controls how those seconds are displayed.

If you want to make certain that all daemons and system processes receive the corrrect TZ setting then you really should reboot after editing /etc/TIMEZONE.
If it ain't broke, I can fix that.