From 2812abda9be8d1495c4486109c8a9840ed19aec5 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 6 Apr 2011 18:19:19 +0200 Subject: [PATCH] Bugfix on Daylight Saving Time. --- src/fielddatetime.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/fielddatetime.c b/src/fielddatetime.c index 103782f..9c75802 100644 --- a/src/fielddatetime.c +++ b/src/fielddatetime.c @@ -742,6 +742,7 @@ struct tm ret = g_malloc0 (sizeof (struct tm)); ret->tm_mday = 1; + ret->tm_isdst = -1; i_to = MIN (len_strv, len_formatv); for (i = 0; i < i_to; i++) @@ -790,12 +791,6 @@ struct tm mktime (ret); } - /* mktime set tm_hour = 1 if tm_hour == 0 */ - if (g_strrstr (delimiters, "%H") == NULL) - { - ret->tm_hour = 0; - } - return ret; } -- 2.49.0