]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DST bug fix
authorwessels <>
Thu, 30 Oct 1997 09:01:41 +0000 (09:01 +0000)
committerwessels <>
Thu, 30 Oct 1997 09:01:41 +0000 (09:01 +0000)
lib/rfc1123.c

index c90ffb12ebe739bc69379b180ae6e0a00659aafe..111cca0b2c04c11417dca42f8e6205e3b4d36e4a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rfc1123.c,v 1.8 1997/10/25 17:22:29 wessels Exp $
+ * $Id: rfc1123.c,v 1.9 1997/10/30 02:01:41 wessels Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -236,6 +236,12 @@ parse_rfc1123(const char *str)
        time_t cur_t = time(NULL);
        struct tm *local = localtime(&cur_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 */