aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-12-08 22:22:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-12-08 22:22:36 +0800
commite2b2aeceea77dd255025b0ecceba8d72f0278533 (patch)
treefb32d9dda6977ad04950f76de947a543a355446d /camel
parent0a022753895f05235cbcddef223923a15b0d4b4f (diff)
downloadgsoc2013-evolution-e2b2aeceea77dd255025b0ecceba8d72f0278533.tar.gz
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
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-message.c5
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;
an title='2015-10-26 16:08:32 +0800'>2015-10-262-5/+4 * Deprecate ports broken for more than 6 monthsantoine2015-10-261-0/+2 * Mark as broken: does not fetchbapt2015-10-241-0/+1 * finance/bitcoin-armory: update 0.92.3 -> 0.93.2junovitch2015-10-2413-73/+111 * finance/moneymanagerx: Upgrade version 0.9.9.0 => 1.0.0.0marino2015-10-104-103/+85 * - Add NO_ARCHsunpoet2015-10-091-0/+1 * Update to 2.6.9madpilot2015-10-085-7/+34 * - Update gnucash and gnucash-docs to 2.6.8madpilot2015-09-306-7/+76 * Update to version 5.0.5pawel2015-09-232-3/+3 * Make all GNUstep ports install into the System domain so that the Local domai...theraven2015-09-192-23/+23 * - Add missing dependswen2015-09-171-2/+4 * Remove ansi version fo wxGTK 2.8 and only keep the unicode versionbapt2015-09-171-1/+1 * Update to version 5.0.4pawel2015-09-163-3/+4 * Make it so that the default Perl is always called perl5.mat2015-09-142-2/+2 * This needs perl as both build and run dependencyamdmi32015-09-121-1/+2 * - Update to 1.34culot2015-09-112-4/+4 * finance/py-stripe: Update to 1.25.0koobs2015-09-063-12/+27 * finance/py-stripe: Take MAINTAINER'shipkoobs2015-09-061-1/+1 * - Clarify LICENSEamdmi32015-09-022-6/+5 * - Fix shebangsamdmi32015-09-011-1/+3 * - Switch to options helpersamdmi32015-08-271-7/+2 * - update to 0.25leeym2015-08-263-5/+4 * - Update to 1.38sunpoet2015-08-243-5/+7 * - Add NO_ARCHamdmi32015-08-191-1/+2 * - Add NO_ARCHamdmi32015-08-191-1/+2 * Reset maintainererwin2015-08-191-1/+1 * Reset maintainererwin2015-08-191-1/+1 * Remove UNIQUENAME and LATEST_LINK.mat2015-08-171-2/+0 * - Update to 1.24sunpoet2015-08-143-5/+4 * Remove expired tryton 2.4 portsrm2015-08-05185-2116/+0 * Part 1 of adding USE_GNOME=intltool to ports that require it.kwm2015-08-033-3/+3 * Switch default python_CMD used by shebangfix to ${PYTHON_CMD} for portsantoine2015-07-301-1/+0 * - Update to 0.9.34wen2015-07-292-4/+3 * - Fix shebangsamdmi32015-07-291-1/+5 * - Update to 6.6.1sunpoet2015-07-282-3/+3 * - Update to 0.4-5tota2015-07-252-3/+3 * - Update to 1.33sunpoet2015-07-252-3/+3 * - Update to 1.32sunpoet2015-07-242-4/+4 * - Update to 6.6.0sunpoet2015-07-172-3/+3 * - Update to 0.23-0tota2015-07-122-4/+3 * Update tryton 2.4 suite to it's ultimate versionsrm2015-07-0585-100/+255 * Set NO_ARCH for remaining rubygem-* ports with no arch dependent filespgollucci2015-07-031-0/+2 * - Update gnucash and gnucash-docs to 2.6.7madpilot2015-07-015-6/+7 * - Update to 2.3.2amdmi32015-07-013-3/+7 * - Update to 1.2wen2015-06-20