[evolution-ews/gnome-3-26] Use icaltime_is_utc() instead of icaltimetype::is_utc
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-26] Use icaltime_is_utc() instead of icaltimetype::is_utc
- Date: Wed, 4 Oct 2017 10:00:15 +0000 (UTC)
commit 7c0f42604c16fe571168ea48f4628bc920359595
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 4 11:59:37 2017 +0200
Use icaltime_is_utc() instead of icaltimetype::is_utc
The structure member is going to be removed from libical in the next release
and the function is available for a long time, thus it's safe to replace
the usage in the code.
src/calendar/e-cal-backend-ews.c | 4 +---
src/server/e-ews-calendar-utils.c | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index c0fbec7..e1bed08 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1561,9 +1561,7 @@ ecb_ews_get_changes_sync (ECalMetaBackend *meta_backend,
}
fb.start.zone = utc_zone;
- fb.start.is_utc = 1;
fb.end.zone = utc_zone;
- fb.end.is_utc = 1;
icalcomponent_set_dtstart (vevent, fb.start);
icalcomponent_set_dtend (vevent, fb.end);
@@ -2089,7 +2087,7 @@ ecb_ews_get_timezone_from_ical_component (ECalBackendEws *cbews,
struct icaltimetype dtstart;
dtstart = icalproperty_get_dtstart (prop);
- if (dtstart.is_utc)
+ if (icaltime_is_utc (dtstart))
tzid = "UTC";
}
}
diff --git a/src/server/e-ews-calendar-utils.c b/src/server/e-ews-calendar-utils.c
index 2e1549a..6e84350 100644
--- a/src/server/e-ews-calendar-utils.c
+++ b/src/server/e-ews-calendar-utils.c
@@ -224,7 +224,7 @@ e_ews_cal_utils_set_time (ESoapMessage *msg,
g_return_if_fail (tt != NULL);
if (with_timezone) {
- if (tt->is_utc || !tt->zone || tt->zone == icaltimezone_get_utc_timezone ()) {
+ if (icaltime_is_utc (*tt) || !tt->zone || tt->zone == icaltimezone_get_utc_timezone ()) {
tz_ident = g_strdup ("Z");
} else {
gint offset, is_daylight, hrs, mins;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]