diff options
Diffstat (limited to 'libmateweather/weather-iwin.c')
-rw-r--r-- | libmateweather/weather-iwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |