*** timemodule.c.orig Sun Jun 29 20:58:21 2003 --- timemodule.c Sun Jun 29 21:00:30 2003 *************** *** 357,362 **** --- 357,370 ---- p->tm_mon--; p->tm_wday = (p->tm_wday + 1) % 7; p->tm_yday--; + #ifdef HAVE_MKTIME + /* Use mktime to normalize the struct tm field tm_gmtoff to + the current timezone offset for the benefit of the + BSD-style struct tm's that have it. Without this we would + lie to these libc's by using a struct tm that says we are + in GMT. */ + mktime(p); + #endif return 1; }