aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-message.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e6b598579f..89b2654094 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2000-12-09 Not Zed <NotZed@HelixCode.com>
+
+ * camel-mime-message.c (camel_mime_message_set_date): Change the
+ sign of the default date offset when none is supplied.
+ (camel_mime_message_set_date): Also do dst if its dst (forward 1
+ hour). Fixes #928 + some.
+
2000-12-06 Not Zed <NotZed@HelixCode.com>
* tests/lib/camel-test.h (check): Change line no format so that
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index c75b83b77f..4851771e43 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -191,13 +191,14 @@ camel_mime_message_set_date(CamelMimeMessage *message, time_t date, int offset)
date = time(0);
local = localtime(&date);
- offset = 0;
#if defined(HAVE_TIMEZONE)
tz = timezone;
#elif defined(HAVE_TM_GMTOFF)
tz = local->tm_gmtoff;
#endif
- offset = ((tz/60/60) * 100) + (tz/60 % 60);
+ offset = -(((tz/60/60) * 100) + (tz/60 % 60));
+ if (local->tm_isdst>0)
+ offset += 100;
}
message->date = date;
message->date_offset = offset;