Skip to content

Commit

Permalink
(fix) correctly handle all-day events with EAS v16 (fixes #4397)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Feb 14, 2018
1 parent 9776e9d commit e50e112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ActiveSync/iCalEvent+ActiveSync.m
Expand Up @@ -128,7 +128,7 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) context
// 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: @"<StartTime xmlns=\"Calendar:\">%@</StartTime>",
[[[self startDate] dateByAddingYears: 0 months: 0 days: 0
hours: 0 minutes: 0
Expand All @@ -141,7 +141,7 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) context
// 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: @"<EndTime xmlns=\"Calendar:\">%@</EndTime>",
[[[self endDate] dateByAddingYears: 0 months: 0 days: 0
hours: 0 minutes: 0
Expand Down
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -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)
-------------------
Expand Down

0 comments on commit e50e112

Please sign in to comment.