From bde989cc0ef493ab42e53b13af0a592110500c88 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 2 Feb 2022 13:06:55 +0100 Subject: [PATCH] event: Workaround libical-glib bug before 3.0.12 version Even the is_daylight argument is optional, the libical-glib had a bug to require it. No need to bump the dependency, just workaround the problem. Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/444 --- src/core/gcal-event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/gcal-event.c b/src/core/gcal-event.c index 4df6f542..49833a3a 100644 --- a/src/core/gcal-event.c +++ b/src/core/gcal-event.c @@ -192,8 +192,10 @@ get_timezone_from_ical (GcalEvent *self, { g_autofree gchar *tzid = NULL; gint offset; + gint is_daylight = 0; - offset = i_cal_timezone_get_utc_offset (zone, itt, NULL); + /* libical-glib prior to 3.0.12 fails if no return location for is_daylight is passed */ + offset = i_cal_timezone_get_utc_offset (zone, itt, &is_daylight); tzid = format_utc_offset (offset); tz = g_time_zone_new_identifier (tzid); }