[gnome-calendar/wip/mcrha/gcal-event-construct: 94/94] event: Workaround libical-glib bug before 3.0.12 version
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/mcrha/gcal-event-construct: 94/94] event: Workaround libical-glib bug before 3.0.12 version
- Date: Mon, 7 Mar 2022 17:51:28 +0000 (UTC)
commit 9897f38bd3936530f2ce933fad0d89fccf819da8
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 2 13:06:55 2022 +0100
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 3396912a..81c426bc 100644
--- a/src/core/gcal-event.c
+++ b/src/core/gcal-event.c
@@ -194,8 +194,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]