aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idolocationmenuitem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/idolocationmenuitem.c b/src/idolocationmenuitem.c
index 8b16807..6999cc1 100644
--- a/src/idolocationmenuitem.c
+++ b/src/idolocationmenuitem.c
@@ -53,7 +53,12 @@ update_timestamp (IdoLocationMenuItem * self)
IdoLocationMenuItemPrivate * priv = ido_location_menu_item_get_instance_private(self);
- tz = g_time_zone_new (priv->timezone);
+ #if GLIB_CHECK_VERSION(2, 68, 0)
+ tz = g_time_zone_new_identifier (priv->timezone);
+ #else
+ tz = g_time_zone_new (priv->timezone);
+ #endif
+
if (tz == NULL)
tz = g_time_zone_new_local ();
date_time = g_date_time_new_now (tz);