diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-12-08 22:22:36 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-12-08 22:22:36 +0800 |
commit | e2b2aeceea77dd255025b0ecceba8d72f0278533 (patch) | |
tree | fb32d9dda6977ad04950f76de947a543a355446d | |
parent | 0a022753895f05235cbcddef223923a15b0d4b4f (diff) | |
download | gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.gz gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.bz2 gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.lz gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.xz gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.zst gsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.zip |
Change the sign of the default date offset when none is supplied.
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.
svn path=/trunk/; revision=6860
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 5 |
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; |