the GMT offset. DONT use the current time, because it will be different
for DT and ST.
/*
- * $Id: rfc1123.c,v 1.15 1998/03/11 18:07:22 rousskov Exp $
+ * $Id: rfc1123.c,v 1.16 1998/04/21 22:43:44 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
#elif HAVE_TM_GMTOFF
t = mktime(&tm);
{
- time_t cur_t = time(NULL);
- struct tm *local = localtime(&cur_t);
+ struct tm *local = localtime(&t);
t += local->tm_gmtoff;
- /*
- * The following assumes a fixed DST offset of 1 hour,
- * which is probably wrong.
- */
- if (tm.tm_isdst > 0)
- t += 3600;
}
#else
/* some systems do not have tm_gmtoff so we fake it */