aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index f4f85f22d9..06f6f7b029 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -213,8 +213,11 @@ camel_mime_message_set_date (CamelMimeMessage *message, time_t date, int offset
tz = -local->tm_gmtoff;
#endif
offset = -(((tz/60/60) * 100) + (tz/60 % 60));
+#ifdef HAVE_TIMEZONE
+ /* tm.tm_gmtoff is already adjusted... */
if (local->tm_isdst>0)
offset += 100;
+#endif
}
message->date = date;
message->date_offset = offset;