Does anyone knows status of it?
Senat change Daylight saving time from April to March and from October to November. Now code, working in multitimeone screwed if TZ variable used. MSVCRT.dll from 2004 on my XP has onld April and October date hardcoded.
Following code is from VCPP6SP6\VC98\CRT\SRC\TZSET.C
if ( tzapiused ) {
/*
* Convert the start of daylight saving time to dststart.
*/
.............................
Proper code goes here that use API and updated
values from the Registry
..........................................................
}
else {
/*
* GetTimeZoneInformation API was NOT used, or failed.
USA daylight saving time rules are assumed.
*/
cvtdate( 1,
1,
tb->tm_year,
4, /* April */ <--------WRONG DATA!!!!
1, /* first... */
0, /* ...Sunday */
0,
2, /* 02:00 (2 AM) */
0,
0,
0 );
cvtdate( 0,
1,
tb->tm_year,
10, /* October */ <--------WRONG DATA!!!!
5, /* last... */
0, /* ...Sunday */
0,
2, /* 02:00 (2 AM) */
0,
0,
0 );
}
}