Operating System - HP-UX
1752631 Members
5896 Online
108788 Solutions
New Discussion юеВ

Re: Daylight saving winter/summer OK, summer/winter fail

 
BERTRAND_7
Frequent Advisor

Daylight saving winter/summer OK, summer/winter fail

To test the behaviour of our application during daylight savings changes, we change the date on the HPUX computer.

The timezone is set to EST5EDT

First, we set the date to 9 of March 2008 01:59.
The minute after was 03:00
==> Everything is fine

Then, we set the date to 2 of November 2008 1:59.
The minute after was 02:00
==> failure (we were expecting 01:00)

HPUX 11.23 is installed with patch ┬иPHCO_36098 for tztab.

In the content of the tztab file, we have :

EST5EDT
...
0 3 8-14 3 2007-2038 0 EDT4
0 1 1-7 11 2007-2038 0 EST5


Did someone already encoutered the problem ?
For me it's strange that it works from winter to summer but not the reverse!

Thanks for your help
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Daylight saving winter/summer OK, summer/winter fail

I believe you need to set the date to 2 of November 2008 12:59.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Daylight saving winter/summer OK, summer/winter fail

Hi:

Pete is correct, the 0159 setting you used was ambiguous. It could be either EST or EDT.

Instead of actually setting and resetting your server's date (and then worrying if your applications, logs and databases have been harmed), use the Perl interfaces to the 'libC' time routines to test dynamically! See the Perl script offered by Clay here:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1007176

Regards!

...JRF...
skt_skt
Honored Contributor

Re: Daylight saving winter/summer OK, summer/winter fail

i ahve used that perl script; it works great;
BERTRAND_7
Frequent Advisor

Re: Daylight saving winter/summer OK, summer/winter fail

Perl script works fine.
Anyway I had to run the test so I used the date command with UTC option '-u'

date -u 1104054507