]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
windows NT defines _timezone apparently
authorwessels <>
Fri, 24 Apr 1998 11:20:23 +0000 (11:20 +0000)
committerwessels <>
Fri, 24 Apr 1998 11:20:23 +0000 (11:20 +0000)
lib/rfc1123.c

index bb9d179e58ae1626bc43cb64bc46151c00aa756d..5fc2d4f87d6737736ff6cd1e7219640c33814899 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $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
@@ -251,16 +251,20 @@ parse_rfc1123(const char *str)
     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;