problem with tzcode96l
Todd C. Miller
Todd.Miller at cs.colorado.edu
Tue Oct 29 21:36:25 UTC 1996
Here is the exact test the POSIX test suite is using that fails.
int
main()
{
struct tm tm;
time_t t;
tm.tm_isdst = -1;
tm.tm_sec = 0;
tm.tm_min = 0;
tm.tm_hour = 2;
tm.tm_mday = 26;
tm.tm_mon = 1;
tm.tm_year = 91;
tm.tm_wday = 2;
tm.tm_yday = -1;
putenv("TZ=dst0std,J057,J059");
tzset();
t = mktime(&tm);
printf("Expected: 667530000\n");
printf("or: 667533600\n");
printf("Actual: %ld\n", (long)t);
return 0;
}
More information about the tz
mailing list