From 42f0f96a9153cd76ac1e792b167e79cfead9d850 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 26 Jun 2002 11:53:43 +0000 Subject: [PATCH] Use ts->tm_isdst instead daylight SVN revision: 157 --- elogd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elogd.c b/elogd.c index 32b2dd34..dd10c5a5 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.33 2002/06/26 11:53:43 midas + Use ts->tm_isdst instead daylight + Revision 2.32 2002/06/26 11:44:54 midas Fixed bug when deleting last message in logbook @@ -691,7 +694,7 @@ struct tm *ts; ts = localtime(&now); strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S", ts); offset = (-(int)timezone); - if (daylight) + if (ts->tm_isdst) offset += 3600; snprintf(str, sizeof(str) - 1, "Date: %s %+03d%02d\r\n\r\n", buf, (int) (offset/3600), (int) ((abs((int)offset)/60) % 60));