dst change didn't take effect (15 Views)
Reply
Trusted Contributor
Richard Darling
Posts: 592
Registered: ‎12-15-1999
Message 1 of 11 (15 Views)

dst change didn't take effect

We are located in the EST. I editted the tztab file:
root:L1000>:pwd
/usr/lib

# Eastern Standard Time, Eastern Daylight Time
EST5EDT
0 3 24-30 4 1970-1973 0 EDT4
0 3 6 1 1974 0-6 EDT4
0 3 22-28 2 1975 0 EDT4
0 3 24-30 4 1976-1986 0 EDT4
0 3 1-7 4 1987-2006 0 EDT4
0 3 8-14 3 2007-2038 0 EDT4
0 1 25-31 10 1970-1973 0 EST5
0 1 24-30 11 1974 0 EST5
0 1 25-31 10 1975-2007 0 EST5
0 1 1-7 11 2007-2038 0 EST5

Started and stopped cron:

root:L1000>:/sbin/init.d/cron stop
cron stopped
root:L1000>:/sbin/init.d/cron start
cron started

root:L1000>:date
Sun Mar 11 17:04:01 EST 2007

Still off by 1 hour and displaying EST.

Can anyone see anything that I'm missing?
Thanks.
RD
rdarling@southwickclothing.com
Trusted Contributor
Richard Darling
Posts: 592
Registered: ‎12-15-1999
Message 2 of 11 (15 Views)

Re: dst change didn't take effect

root:L1000>:echo $TZ
EST5EDT

...in case anyone was going to ask em to check it...

RD
rdarling@southwickclothing.com
Honored Contributor
Raj D.
Posts: 2,624
Registered: ‎06-12-2004
Message 3 of 11 (15 Views)

Re: dst change didn't take effect

RD,

Which version of hp-ux you are using.? Do you have the DST patch installed?
hp-ux 11iv3 can support 2007 DST Change, rest all you need to update the DST patch.

For
hp-ux 11.00 --> PHCO_35991
hp-ux 11.11 --> PHCO_35989
hp-ux 11.23 --> PHCO_35990 or PHCO_34375
hp-ux 11iv3 --> PHCO_35992 (Min requirement)
(though 11iv3 supports 2007 DST change).

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Honored Contributor
Raj D.
Posts: 2,624
Registered: ‎06-12-2004
Message 4 of 11 (15 Views)

Re: dst change didn't take effect

You can run this to check:
# swlist -l product | grep -i tz

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Acclaimed Contributor
Dennis Handly
Posts: 25,292
Registered: ‎03-06-2006
Message 5 of 11 (15 Views)

Re: dst change didn't take effect

>dst change didn't take effect. ... I edited the tztab file:

You edited it incorrectly. It is better if you install the proper patch, or copy the tztab file from a patch in a supported OS version.

In particular, you didn't change this entry correctly:
0 1 25-31 10 1975-2007 0 EST5

>Raj D. (though 11iv3 supports 2007 DST change).

I'm not sure it has the latest changes for Canada, these were done in the last few months.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 6 of 11 (15 Views)

Re: dst change didn't take effect

Richard,

By far the easiest way to ensure that the change is made correctly is to install the latest patch for your OS. From the ITRC patch database, it is a simple matter to select the OS, then search on "dst". Of course, if this happens to be a 10.20 system, then you're forced into some sort of manual change.

Here is the /usr/lib/tztab entry from a patched system - you might want to try cutting and pasting this into tztab:

# Eastern Standard Time, Eastern Daylight Time
EST5EDT
0 3 24-30 4 1970-1973 0 EDT4
0 3 6 1 1974 0-6 EDT4
0 3 22-28 2 1975 0 EDT4
0 3 24-30 4 1976-1986 0 EDT4
0 3 1-7 4 1987-2006 0 EDT4
0 3 8-14 3 2007-2038 0 EDT4
0 1 25-31 10 1970-1973 0 EST5
0 1 24-30 11 1974 0 EST5
0 1 25-31 10 1975-2006 0 EST5
0 1 1-7 11 2007-2038 0 EST5


Pete

Pete
Regular Advisor
Eric Jacklin
Posts: 159
Registered: ‎10-04-2006
Message 7 of 11 (15 Views)

Re: dst change didn't take effect

Yes, You missed below mention patch.
Update this patch in all the server.

PHCO_34342 (superseded by PHCO_34668)
Esteemed Contributor
Ludovic Derlyn
Posts: 441
Registered: ‎06-13-2004
Message 8 of 11 (15 Views)

Re: dst change didn't take effect

hi,

Just a precision, when you apply this patch , if tztab has been modified , patch didn't replace existing, but copy new tztab in /usr/lib/contrib/tztab

You must edit it and move to /usr/lib

Last remark, you must stop ansd restart all applications for initialise new tztab

In my cases, i have rebooted my servers by precaution.

Regards
L-DERLYN
Honored Contributor
Jaime Bolanos Rojas.
Posts: 1,168
Registered: ‎08-05-2005
Message 9 of 11 (15 Views)

Re: dst change didn't take effect

Richard,

You forgot to mention OS version, and why you were doing the changes manually instead of using the patch.

Regards,

Jaime.
Work hard when the need comes out.
Trusted Contributor
Richard Darling
Posts: 592
Registered: ‎12-15-1999
Message 10 of 11 (15 Views)

Re: dst change didn't take effect

Version 11.0 - downloaded and applied the patch - all set. Thanks for all the replies.
RD
rdarling@southwickclothing.com
Trusted Contributor
Richard Darling
Posts: 592
Registered: ‎12-15-1999
Message 11 of 11 (15 Views)

Re: dst change didn't take effect

installed patch as stated above - thanks to all.
rdarling@southwickclothing.com
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.