]> saetta.ns0.it Git - libgtkform/commitdiff
Bugfix on Daylight Saving Time. 0.1.6
authorAndrea Zagli <azagli@libero.it>
Wed, 6 Apr 2011 16:19:19 +0000 (18:19 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 6 Apr 2011 16:19:19 +0000 (18:19 +0200)
src/fielddatetime.c

index 103782f49ecd0d56b430982e666525bd8ff8938b..9c7580240e474b0cb061c12a231846ea5541ff25 100644 (file)
@@ -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;
 }