From: wessels <> Date: Thu, 30 Oct 1997 09:01:41 +0000 (+0000) Subject: DST bug fix X-Git-Tag: SQUID_3_0_PRE1~4629 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08566cf5dc7446058e8c2c50a097bdfcb9be1654;p=thirdparty%2Fsquid.git DST bug fix --- diff --git a/lib/rfc1123.c b/lib/rfc1123.c index c90ffb12eb..111cca0b2c 100644 --- a/lib/rfc1123.c +++ b/lib/rfc1123.c @@ -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 */