From e50e112a96619dd5b09e30fe60cd2380f4199376 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 14 Feb 2018 10:05:44 -0500 Subject: [PATCH] (fix) correctly handle all-day events with EAS v16 (fixes #4397) --- ActiveSync/iCalEvent+ActiveSync.m | 4 ++-- NEWS | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ActiveSync/iCalEvent+ActiveSync.m b/ActiveSync/iCalEvent+ActiveSync.m index 40a0aa20f..86881aad7 100644 --- a/ActiveSync/iCalEvent+ActiveSync.m +++ b/ActiveSync/iCalEvent+ActiveSync.m @@ -128,7 +128,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // StartTime -- http://msdn.microsoft.com/en-us/library/ee157132(v=exchg.80).aspx if ([self startDate]) { - if ([self isAllDay] && !tz) + if ([self isAllDay] && !tz && [[context objectForKey: @"ASProtocolVersion"] floatValue] < 16.0) [s appendFormat: @"%@", [[[self startDate] dateByAddingYears: 0 months: 0 days: 0 hours: 0 minutes: 0 @@ -141,7 +141,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // EndTime -- http://msdn.microsoft.com/en-us/library/ee157945(v=exchg.80).aspx if ([self endDate]) { - if ([self isAllDay] && !tz) + if ([self isAllDay] && !tz && [[context objectForKey: @"ASProtocolVersion"] floatValue] < 16.0) [s appendFormat: @"%@", [[[self endDate] dateByAddingYears: 0 months: 0 days: 0 hours: 0 minutes: 0 diff --git a/NEWS b/NEWS index 0a59bf84b..f8ca90e97 100644 --- a/NEWS +++ b/NEWS @@ -56,6 +56,7 @@ Bug fixes - [eas] hebrew folders encoding problem using EAS (#4240) - [eas] avoid sync requests for shared folders every second (#4275) - [eas] we skip the organizer from the attendees list (#4402) + - [eas] correctly handle all-day events with EAS v16 (#4397) 3.2.10 (2017-07-05) -------------------