From 08566cf5dc7446058e8c2c50a097bdfcb9be1654 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 30 Oct 1997 09:01:41 +0000 Subject: [PATCH] DST bug fix --- lib/rfc1123.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 */ -- 2.47.3