commit 6452f95be69efb9ce54158b3ddb9c7c3797e652f from: rsc date: Thu May 18 23:08:02 2006 UTC time zone fix commit - e0d1df6f7cef193774518a690ef9cbdebbdd0c4b commit + 6452f95be69efb9ce54158b3ddb9c7c3797e652f blob - 87cbf694561a41157fc29d9a2496d2a5e63405fe blob + 76f4a262117ea3f2d4b400238ecec9ba178c9afc --- src/lib9/date.c +++ src/lib9/date.c @@ -44,7 +44,11 @@ tm2Tm(struct tm *tm, Tm *bigtm, int gmt) static void Tm2tm(Tm *bigtm, struct tm *tm) { - memset(tm, 0, sizeof *tm); + /* initialize with current time to get local time zone! (tm_isdst) */ + time_t t; + time(&t); + *tm = *localtime(&t); + tm->tm_sec = bigtm->sec; tm->tm_min = bigtm->min; tm->tm_hour = bigtm->hour;