diff --git a/SoObjects/Appointments/iCalToDo+SOGo.m b/SoObjects/Appointments/iCalToDo+SOGo.m index 6245bc49d..f7441fa2d 100644 --- a/SoObjects/Appointments/iCalToDo+SOGo.m +++ b/SoObjects/Appointments/iCalToDo+SOGo.m @@ -107,6 +107,7 @@ BOOL isAllDayStartDate, isAllDayDueDate; NSCalendarDate *startDate, *dueDate, *completedDate; NSInteger percent; + NSString *owner; SOGoUserDefaults *ud; iCalDateTime *todoStartDate, *todoDueDate; iCalTimeZone *tz; @@ -230,6 +231,15 @@ } else [self setPercentComplete: @""]; + + //To make an ics conforme with outlook live (bouh), valarm must be the last element of vevent + //Try to set it here + o = [data objectForKey: @"alarm"]; + if ([o isKindOfClass: [NSDictionary class]]) + { + owner = [data objectForKey: @"owner"]; + [self _setAlarm: o forOwner: owner]; + } } - (NSMutableDictionary *) quickRecordFromContent: (NSString *) theContent