time-zone-monitor: Switch to g_time_zone_new_identifier()

We don't even need to check for NULL here because if the system timezone
is invalid, we're too screwed to have a fallback path anyway.
This commit is contained in:
Georges Basile Stavracas Neto
2021-02-26 19:26:49 -03:00
parent 64fe7e543c
commit 27c6d2c017
+1 -1
View File
@@ -71,7 +71,7 @@ on_timedate1_proxy_properties_changed_cb (GcalTimeZoneMonitor *self,
if (timezone_variant)
timezone_identifier = g_variant_get_string (timezone_variant, NULL);
self->timezone = g_time_zone_new (timezone_identifier);
self->timezone = g_time_zone_new_identifier (timezone_identifier);
g_debug ("System timezone is %s", g_time_zone_get_identifier (self->timezone));