[gnome-calendar/wip/mcrha/gcal-event-construct] gcal-event: Workaround bug in libical-glib before 3.0.12 version
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/mcrha/gcal-event-construct] gcal-event: Workaround bug in libical-glib before 3.0.12 version
- Date: Wed, 2 Feb 2022 12:07:26 +0000 (UTC)
commit c11a87e5f943756e3e570cf51cdab3cd209635b7
Author: Milan Crha <mcrha redhat com>
Date: Wed Feb 2 13:06:55 2022 +0100
gcal-event: Workaround bug in libical-glib 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.
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 bbeacf83..bf44a5b7 100644
--- a/src/core/gcal-event.c
+++ b/src/core/gcal-event.c
@@ -197,8 +197,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);
+ /* The 'is_daylight' is not used, it's here to workaround a bug in pre-3.0.12 libical-glib */
+ 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]