aboutsummaryrefslogtreecommitdiffstats
path: root/camel/broken-date-parser.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-09-05 22:26:30 +0800
committerDan Winship <danw@src.gnome.org>2002-09-05 22:26:30 +0800
commit15af11c98844a2ce5f5c5526a635a495ebbfdd89 (patch)
tree4bc7abfe29283c873f8ca091f684c4839e58018f /camel/broken-date-parser.c
parent9c2d49aa469eb1cbd89bb4b4021add3a8e34d3e2 (diff)
downloadgsoc2013-evolution-15af11c98844a2ce5f5c5526a635a495ebbfdd89.tar.gz
gsoc2013-evolution-15af11c98844a2ce5f5c5526a635a495ebbfdd89.tar.zst
gsoc2013-evolution-15af11c98844a2ce5f5c5526a635a495ebbfdd89.zip
Use e_mktime_utc.
* camel-mime-utils.c (header_decode_date): Use e_mktime_utc. * camel-mime-message.c (camel_mime_message_set_date): Use e_localtime_with_offset. * broken-date-parser.c (decode_broken_date): Use e_mktime_utc. svn path=/trunk/; revision=17986
Diffstat (limited to 'camel/broken-date-parser.c')
-rw-r--r--camel/broken-date-parser.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/camel/broken-date-parser.c b/camel/broken-date-parser.c
index 7bcff0ffd4..cba19208b4 100644
--- a/camel/broken-date-parser.c
+++ b/camel/broken-date-parser.c
@@ -34,6 +34,7 @@
#include <time.h>
#include "broken-date-parser.h"
+#include "e-time-utils.h"
#define d(x) x
@@ -403,14 +404,7 @@ decode_broken_date (struct _date_token *tokens, int *tzone)
d(printf ("\n"));
- time = mktime (&tm);
-#if defined (HAVE_TIMEZONE)
- time -= timezone;
-#elif defined (HAVE_TM_GMTOFF)
- time += tm.tm_gmtoff;
-#else
-#error Neither HAVE_TIMEZONE nor HAVE_TM_GMTOFF defined. Rerun autoheader, autoconf, etc.
-#endif
+ time = e_mktime_utc (&tm);
/* t is now GMT of the time we want, but not offset by the timezone ... */