Operating System - HP-UX
1752679 Members
5541 Online
108789 Solutions
New Discussion юеВ

Re: dst change didn't take effect

 
Richard Darling
Trusted Contributor

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
10 REPLIES 10
Richard Darling
Trusted Contributor

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
Raj D.
Honored Contributor

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 . "
Raj D.
Honored Contributor

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 . "
Dennis Handly
Acclaimed Contributor

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.
Pete Randall
Outstanding Contributor

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
Eric Jacklin
Regular Advisor

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)
Ludovic Derlyn
Esteemed Contributor

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
Jaime Bolanos Rojas.
Honored Contributor

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.
Richard Darling
Trusted Contributor

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