]> saetta.ns0.it Git - libgtkform/commitdiff
Added mktime to GtkFormFieldDateTime::get_tm_from_str to normalize the return value...
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 18 Sep 2012 14:56:23 +0000 (16:56 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Tue, 18 Sep 2012 14:56:23 +0000 (16:56 +0200)
libgtkform/fielddatetime.c

index 9810e7c038f1ea1be317246cbeb16b6e0011bf8c..b5ff8b880fcbb97ff1d0fe6b92fa2c4eb5251f5e 100644 (file)
@@ -763,6 +763,7 @@ struct tm
                        ret->tm_hour = g_date_time_get_hour (gdatetime);
                        ret->tm_min = g_date_time_get_minute (gdatetime);
                        ret->tm_sec = g_date_time_get_second (gdatetime);
+                       mktime (ret);
                }
 
        return ret;