mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-17 09:25:25 +00:00
(web) Fix freebusy information with all-day events
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user