/*
- * $Id: rfc1123.c,v 1.16 1998/04/21 22:43:44 wessels Exp $
+ * $Id: rfc1123.c,v 1.17 1998/04/24 05:20:23 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
t = mktime(&tm);
{
time_t dst = 0;
-#ifndef _TIMEZONE
+#if !defined _TIMEZONE && !defined _timezone
extern time_t timezone;
-#endif /* _TIMEZONE */
+#endif
/*
* The following assumes a fixed DST offset of 1 hour,
* which is probably wrong.
*/
if (tm.tm_isdst > 0)
dst = -3600;
+#ifdef _timezone
+ t -= (_timezone + dst);
+#else
t -= (timezone + dst);
+#endif
}
#endif
return t;