diff options
Diffstat (limited to 'plugins/datetime/weather-tz.c')
-rw-r--r-- | plugins/datetime/weather-tz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/datetime/weather-tz.c b/plugins/datetime/weather-tz.c index 2eac90a2..b76a2b8c 100644 --- a/plugins/datetime/weather-tz.c +++ b/plugins/datetime/weather-tz.c @@ -22,7 +22,6 @@ #include "weather-tz.h" #include "tz.h" -#define GWEATHER_I_KNOW_THIS_IS_UNSTABLE #include <libgweather/gweather.h> static GList * @@ -65,6 +64,7 @@ load_timezones (GList *cities) TzLocation *loc; const gchar *country; const gchar *timezone_id; + GTimeZone *tz; gdouble latitude; gdouble longitude; @@ -77,7 +77,8 @@ load_timezones (GList *cities) } country = gweather_location_get_country (l->data); - timezone_id = gweather_timezone_get_tzid (gweather_location_get_timezone (l->data)); + tz = gweather_location_get_timezone (l->data); + timezone_id = g_time_zone_get_identifier (tz); gweather_location_get_coords (l->data, &latitude, &longitude); |