diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-05 22:26:30 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-05 22:26:30 +0800 |
commit | 15af11c98844a2ce5f5c5526a635a495ebbfdd89 (patch) | |
tree | 4bc7abfe29283c873f8ca091f684c4839e58018f /camel/camel-mime-utils.c | |
parent | 9c2d49aa469eb1cbd89bb4b4021add3a8e34d3e2 (diff) | |
download | gsoc2013-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/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3dc31f04d3..f1a3792f60 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -50,6 +50,7 @@ #include <glib.h> #include <gal/unicode/gunicode.h> #include <gal/util/e-iconv.h> +#include "e-time-utils.h" #include "camel-mime-utils.h" #include "camel-charset-map.h" @@ -3472,14 +3473,7 @@ header_decode_date(const char *in, int *saveoffset) d(printf("named offset = %d\n", offset)); } - t = mktime(&tm); -#if defined(HAVE_TIMEZONE) - t -= timezone; -#elif defined(HAVE_TM_GMTOFF) - t += tm.tm_gmtoff; -#else -#error Neither HAVE_TIMEZONE nor HAVE_TM_GMTOFF defined. Rerun autoheader, autoconf, etc. -#endif + t = e_mktime_utc(&tm); /* t is now GMT of the time we want, but not offset by the timezone ... */ |