[gnome-calendar] time-zone-monitor: Switch to g_time_zone_new_identifier()



commit 27c6d2c0171460e2177f48a30e95ed0ec32dd756
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Feb 26 19:17:02 2021 -0300

    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.

 src/core/gcal-time-zone-monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/gcal-time-zone-monitor.c b/src/core/gcal-time-zone-monitor.c
index 26325e01..35f92d1a 100644
--- a/src/core/gcal-time-zone-monitor.c
+++ b/src/core/gcal-time-zone-monitor.c
@@ -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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]