1832617 Members
2833 Online
110043 Solutions
New Discussion

Re: changed Time on HPUX

 
Cristian Plaza
Occasional Contributor

changed Time on HPUX

Hello friends,

i have a problems with the HPUX,

the problem is the following:

April 03, the hpux have one hour greater than the present hour (GMT -04:00 Chile's hour)

3 week ago, i configured the DST parameter in value "0" by means of SAM, but this hpux equal changed time.

i like that the time of this hpux not automatic changed time. how can i do?

aditional data of the hpux's configuration
-r--r--r-- 1 bin bin 25

May 29 2004 TIMEZONE

cat /etc/TIMEZONE
TZ=MSA-4MSADST
export TZ

i need help,

kind to its commentaries,

I take leave sincerely,

regards
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: changed Time on HPUX

HP-UX is unique in that it has a textfile, /usr/lib/tztab, to assist DayLight Saving (Summer) Time transitions. Man tztab for a full explanation and then you will probably see how to make custom changes for your location.
If it ain't broke, I can fix that.
Cheryl Griffin
Honored Contributor

Re: changed Time on HPUX

vi /usr/lib/tztab
# South America Chile
PST4SST
0 23 8-14 3 1983-2038 6 PST4
0 1 8-14 10 1983-2038 0 SST3

edit /etc/TIMEZONE
TZ=PST4SST ; export TZ

Based on http://www.weltzeituhr.com/laender/033_01.shtml
Nächste Zeitumstellung:
15.10.2006 / 00:00 Uhr Ortszeit
(15.10.2006 / 04:00 Uhr UTC)
Umstellungen Sommerzeit:
Beginn: Erster Sonntag nach dem 8. Oktober
Ende: Erster Sonntag nach dem 8. Maerz
Sommerzeit = Standardzeit + 1 Std.
"Downtime is a Crime."
James R. Ferguson
Acclaimed Contributor

Re: changed Time on HPUX

Hi:

By the way, the kernel 'timezone' and 'dst' paramters are really deprecated. See the manpages for 'timezone(5)':

http://docs.hp.com/en/B2355-60105/timezone.5.html

Once you corrrectly set your TZ variable in '/etc/TIMEZONE' I suggest that you (at least) stop and restart 'cron'. A reboot will insure that *all* processes inherit the same view of your localtime, although this is not strictly necessary.

Regards!

...JRF...

Cheryl Griffin
Honored Contributor

Re: changed Time on HPUX

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=232848 explains a reboot is not necessary.

If set_parms timezone is changed a reboot would be necessary.
"Downtime is a Crime."
Cristian Plaza
Occasional Contributor

Re: changed Time on HPUX

Hi,

Thank's for yours answers

but, i not like that the time changed automatic, i like to change manually when it's necessary.

3 week ago, i changed DST parameters a value 0 on SAM and after reboot the hpux, but, the first Sunday of april the time of hpux is one hour greather than present hour..

kind to its commentaries,

I take leave sincerely,

regards,

Bill Hassell
Honored Contributor

Re: changed Time on HPUX

The two kernel parameters DST and TIMEZONE have no effect on your system time as seen by applications and shells. Your computer keeps time in GMT or UTC format, and the contents of /etc/TIMEZONE will translate the time to your location. So as expetected, changing DST has no effect.

You change the contents of /etc/TIMEZONE, then login again and your time will be correct. It is not recommended to change the computer's time manually unless you reboot. Changing time can cause cron and databases to make mistakes.


Bill Hassell, sysadmin