]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Correzione in Solipa::tm_to_gdatetime.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 4 Jul 2011 09:55:53 +0000 (11:55 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Mon, 4 Jul 2011 09:55:53 +0000 (11:55 +0200)
src/utils.c

index 5a2dc173e05b42f9c7758891dd147a43c6086d30..69347dfc74ca813abe1506a44d0fb11c0650226c 100644 (file)
@@ -650,8 +650,8 @@ GDateTime
        ret = NULL;
        if (tm_data != NULL)
                {
-                       ret = g_date_time_new_local (tm_data->tm_year,
-                                                    tm_data->tm_mon,
+                       ret = g_date_time_new_local (tm_data->tm_year + 1900,
+                                                    tm_data->tm_mon + 1,
                                                     tm_data->tm_mday,
                                                     tm_data->tm_hour,
                                                     tm_data->tm_min,