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 | |
parent | 4ebf5cbd15d1f75f96bd34061f2d538bc1c11907 (diff) | |
download | gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.gz gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.bz2 gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.lz gsoc2013-evolution-3fca798afe756025d45d75ae1f903f48f7ac2829.tar.xz 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
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 3 |
2 files changed, 9 insertions, 0 deletions
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 <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. + 2002-04-09 Not Zed <NotZed@Ximian.com> * 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; |