From 4e5542ad2842655ab1a8e424d367331311177bcb Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 10 Dec 2001 14:28:55 +0000 Subject: Fix the tm_gmtoff case (its sign is the opposite of "timezone"). Fixes * camel-mime-message.c (camel_mime_message_set_date): Fix the tm_gmtoff case (its sign is the opposite of "timezone"). Fixes #14678 svn path=/trunk/; revision=14948 --- camel/camel-mime-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-mime-message.c') diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index b9655bec7c..3383e51ba0 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -206,7 +206,7 @@ camel_mime_message_set_date (CamelMimeMessage *message, time_t date, int offset #if defined(HAVE_TIMEZONE) tz = timezone; #elif defined(HAVE_TM_GMTOFF) - tz = local->tm_gmtoff; + tz = -local->tm_gmtoff; #endif offset = -(((tz/60/60) * 100) + (tz/60 % 60)); if (local->tm_isdst>0) -- cgit v1.2.3