mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-28 05:25:41 +00:00
(core) Handle multidays events in freebusy data
This commit is contained in:
1 parent
0d78d3814c
commit
9a245f18fa
2 files changed
+12
No files matched your search
@@ -246,6 +246,17 @@
|
||||
while ([currentDate compare: currentEndDate] == NSOrderedAscending &&
|
||||
[currentEndDate timeIntervalSinceDate: currentDate] >= 3600) // 1 hour
|
||||
{
|
||||
if ([currentDate hourOfDay] == 0)
|
||||
{
|
||||
// New day
|
||||
dayKey = [currentDate shortDateString];
|
||||
dayData = [freeBusy objectForKey: dayKey];
|
||||
if (!dayData)
|
||||
{
|
||||
dayData = [NSMutableDictionary dictionary];
|
||||
[freeBusy setObject: dayData forKey: dayKey];
|
||||
}
|
||||
}
|
||||
hourKey = [NSString stringWithFormat: @"%u", (unsigned int)[currentDate hourOfDay]];
|
||||
hourData = [dayData objectForKey: hourKey];
|
||||
if (!hourData)
|
||||
|
||||
Reference in new issue
Block a user