diff options
author | Milan Crha <mcrha@redhat.com> | 2022-02-02 13:06:55 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-03-07 14:53:52 -0300 |
commit | bde989cc0ef493ab42e53b13af0a592110500c88 (patch) | |
tree | c4ca58c5de975e0250f05a01602f8e74eaf0c47a | |
parent | be95d58cda074d5efaf5500158a3e276a2349ba5 (diff) | |
download | gnome-calendar-wip/mcrha/gcal-event-construct.tar.gz |
event: Workaround libical-glib bug before 3.0.12 versionwip/mcrha/gcal-event-construct
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
-rw-r--r-- | src/core/gcal-event.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |