(web) Fix freebusy information with all-day events

This commit is contained in:
Francis Lachapelle committed 2018-09-18 11:34:40 -04:00
1 parent d05e1fed5d
commit b90d312f43
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -196,6 +196,8 @@
// User is busy for this event
currentStartDate = [record objectForKey: @"startDate"];
currentEndDate = [record objectForKey: @"endDate"];
if ([currentStartDate earlierDate: startDate] == currentStartDate)
currentStartDate = startDate;
dayKey = [currentStartDate shortDateString];
dayData = [freeBusy objectForKey: dayKey];
if (!dayData)
@@ -203,8 +205,6 @@
dayData = [NSMutableDictionary dictionary];
[freeBusy setObject: dayData forKey: dayKey];
}
if ([currentStartDate earlierDate: startDate] == currentStartDate)
currentStartDate = startDate;
currentDate = [NSCalendarDate dateWithYear: [currentStartDate yearOfCommonEra]
month: [currentStartDate monthOfYear]