--- python2.3-2.2.104/Modules/timemodule.c.orig 2003-08-09 12:08:05.000000000 -0500 +++ python2.3-2.2.104/Modules/timemodule.c 2003-08-09 12:04:58.000000000 -0500 @@ -322,7 +322,14 @@ { int y; memset((void *) p, '\0', sizeof(struct tm)); - +#ifdef HAVE_STRUCT_TM_TMZONE + /* 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 if (!PyArg_Parse(args, "(iiiiiiiii)", &y, &p->tm_mon,