From 091ace6dddcba7baaf3e34416c00d4d76b209ab6 Mon Sep 17 00:00:00 2001
From: Andrea Zagli <a.zagli@comune.scandicci.fi.it>
Date: Tue, 18 Sep 2012 16:56:23 +0200
Subject: [PATCH] Added mktime to GtkFormFieldDateTime::get_tm_from_str to
 normalize the return value and fill missing fields.

---
 libgtkform/fielddatetime.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libgtkform/fielddatetime.c b/libgtkform/fielddatetime.c
index 9810e7c..b5ff8b8 100644
--- a/libgtkform/fielddatetime.c
+++ b/libgtkform/fielddatetime.c
@@ -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;
-- 
2.49.0