fix(calendar): When an event has no date (weird case), it is not possible to remove the event (NSException)

This commit is contained in:
smizrahi
2023-08-14 17:08:27 +02:00
committed by Hivert Quentin
parent c474f96e8b
commit 2729cf81c5
+1 -1
View File
@@ -850,7 +850,7 @@
attachUrls = [self attachUrls];
if ([attachUrls count]) [data setObject: attachUrls forKey: @"attachUrls"];
if (!isAllDay)
if (!isAllDay && eventStartDate && eventStartDate)
{
[data setObject: [dateFormatter formattedTime: eventStartDate] forKey: @"localizedStartTime"];
[data setObject: [dateFormatter formattedTime: eventEndDate] forKey: @"localizedEndTime"];