fix(task): fix reminder for tasks

This commit is contained in:
Hivert Quentin
2025-09-15 17:21:47 +02:00
parent 481a9bf1de
commit a7651e56c5

View File

@@ -107,6 +107,7 @@
BOOL isAllDayStartDate, isAllDayDueDate; BOOL isAllDayStartDate, isAllDayDueDate;
NSCalendarDate *startDate, *dueDate, *completedDate; NSCalendarDate *startDate, *dueDate, *completedDate;
NSInteger percent; NSInteger percent;
NSString *owner;
SOGoUserDefaults *ud; SOGoUserDefaults *ud;
iCalDateTime *todoStartDate, *todoDueDate; iCalDateTime *todoStartDate, *todoDueDate;
iCalTimeZone *tz; iCalTimeZone *tz;
@@ -230,6 +231,15 @@
} }
else else
[self setPercentComplete: @""]; [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 - (NSMutableDictionary *) quickRecordFromContent: (NSString *) theContent