From 4422e8100aa235739e83e61ee3e57d426793e731 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 3 Apr 2020 08:43:00 +0200 Subject: =?UTF-8?q?weather-iwin:=20Remove=20the=20warning=20about=20?= =?UTF-8?q?=E2=80=98GTimeVal=E2=80=99=20is=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libmateweather/weather-iwin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libmateweather/weather-iwin.c') 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; } -- cgit v1.2.1