aboutsummaryrefslogtreecommitdiffstats
path: root/camel/broken-date-parser.c
diff options
context:
space:
mode:
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 ... */