From 3fca798afe756025d45d75ae1f903f48f7ac2829 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 9 Apr 2002 19:57:09 +0000 Subject: Don't adjust the timezone offset if we used tm.tm_gmtoff because it is 2002-04-09 Jeffrey Stedfast * camel-mime-message.c (camel_mime_message_set_date): Don't adjust the timezone offset if we used tm.tm_gmtoff because it is already adjusted. svn path=/trunk/; revision=16412 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-message.c | 3 +++ 2 files changed, 9 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 863e33bb14..0fa9c03e0d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2002-04-09 Jeffrey Stedfast + + * camel-mime-message.c (camel_mime_message_set_date): Don't adjust + the timezone offset if we used tm.tm_gmtoff because it is already + adjusted. + 2002-04-09 Not Zed * camel-mime-part.c (construct_from_parser): If we get multiple 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; -- cgit