diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | libmateweather/weather-iwin.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index eddf7a7..cb8a8ef 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_SUBST(LT_VERSION) AC_CANONICAL_HOST -GLIB_REQUIRED=2.50.0 +GLIB_REQUIRED=2.56.0 GTK_REQUIRED=3.22.0 LIBSOUP_REQUIRED=2.54.0 GIO_REQUIRED=2.25.0 diff --git a/libmateweather/weather-iwin.c b/libmateweather/weather-iwin.c index d9c91c3..9f7ff38 100644 --- a/libmateweather/weather-iwin.c +++ b/libmateweather/weather-iwin.c @@ -143,10 +143,10 @@ parseForecastXml (const char *buff, WeatherInfo *master_info) xmlChar *val = xmlNodeGetContent (c); if (val) { - GTimeVal tv; - - if (g_time_val_from_iso8601 ((const char *)val, &tv)) { - update_times[count] = tv.tv_sec; + GDateTime *dt = g_date_time_new_from_iso8601 ((const char *)val, NULL); + if (dt != NULL) { + update_times[count] = g_date_time_to_unix (dt); + g_date_time_unref (dt); } else { update_times[count] = 0; } |