[evolution-mapi] Provide now-required argument to i_cal_timezone_get_utc_offset()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Provide now-required argument to i_cal_timezone_get_utc_offset()
- Date: Mon, 20 May 2019 12:30:58 +0000 (UTC)
commit d871c1df1f3f8990e6e9c00591ae2e4c56b55964
Author: Milan Crha <mcrha redhat com>
Date: Mon May 20 14:32:10 2019 +0200
Provide now-required argument to i_cal_timezone_get_utc_offset()
src/libexchangemapi/e-mapi-cal-tz-utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libexchangemapi/e-mapi-cal-tz-utils.c b/src/libexchangemapi/e-mapi-cal-tz-utils.c
index c74d980..67cc3d4 100644
--- a/src/libexchangemapi/e-mapi-cal-tz-utils.c
+++ b/src/libexchangemapi/e-mapi-cal-tz-utils.c
@@ -101,11 +101,12 @@ get_offset (ICalTimezone *zone,
struct tm local;
ICalTime *itt;
gint offset;
+ gint is_daylight = 0; /* Its value is ignored, but libical-glib 3.0.5 API requires it */
time_t now = time (NULL);
gmtime_r (&now, &local);
itt = e_mapi_tm_to_icaltime (&local, dst);
- offset = i_cal_timezone_get_utc_offset (zone, itt, NULL);
+ offset = i_cal_timezone_get_utc_offset (zone, itt, &is_daylight);
g_clear_object (&itt);
return offset / -60;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]