diff options
author | Dan Winship <danw@src.gnome.org> | 2001-12-10 22:28:55 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-12-10 22:28:55 +0800 |
commit | 4e5542ad2842655ab1a8e424d367331311177bcb (patch) | |
tree | 7963499016212b85600f7f27dab06d50b901fa56 /camel | |
parent | 78e97ea838c90ebdad373c244068810594a1a818 (diff) | |
download | gsoc2013-evolution-4e5542ad2842655ab1a8e424d367331311177bcb.tar.gz gsoc2013-evolution-4e5542ad2842655ab1a8e424d367331311177bcb.tar.zst gsoc2013-evolution-4e5542ad2842655ab1a8e424d367331311177bcb.zip |
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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index cc32f5b29c..6e58fb3e20 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -5,6 +5,12 @@ * camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag. +2001-12-07 Dan Winship <danw@ximian.com> + + * camel-mime-message.c (camel_mime_message_set_date): Fix the + tm_gmtoff case (its sign is the opposite of "timezone"). Fixes + #14678 + 2001-11-29 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-search.c (search_body_contains): Don't use regex 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) |