diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-10 03:57:09 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-10 03:57:09 +0800 |
commit | 3fca798afe756025d45d75ae1f903f48f7ac2829 (patch) | |
tree | 95c89e3f83f1f5da168ba48e94f495018f86a8f0 /camel/camel-mime-message.c | |
parent | 4ebf5cbd15d1f75f96bd34061f2d538bc1c11907 (diff) | |
download | gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.gz gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.zst gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.zip |
Don't adjust the timezone offset if we used tm.tm_gmtoff because it is
2002-04-09 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 3 |
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; |