fix(calendar): do not let DURATION and DTEND be both present in vevent

This commit is contained in:
Hivert Quentin
2023-11-17 09:24:12 +01:00
parent 1e8127b461
commit 0023a9ce3c

View File

@@ -72,8 +72,14 @@
- (void) setEndDate: (NSCalendarDate *) newEndDate
{
CardElement *c;
[(iCalDateTime *) [self uniqueChildWithTag: @"dtend"]
setDateTime: newEndDate];
c = [self uniqueChildWithTag: @"duration"];
if (c)
[self removeChild: c];
}
- (NSCalendarDate *) endDate