mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 21:05:25 +00:00
fix(calendar): fix weekly calculator when event has no duration
This commit is contained in:
@@ -163,7 +163,8 @@
|
||||
|
||||
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
|
||||
if (hasRepeatCount ||
|
||||
[startDate compare: currentEndDate] == NSOrderedAscending)
|
||||
[startDate compare: currentEndDate] == NSOrderedAscending ||
|
||||
([startDate compare: currentEndDate] == NSOrderedSame && [firstRange duration] == 0))
|
||||
{
|
||||
// If the rule count is defined, stop once the count is reached.
|
||||
if ([currentStartDate compare: firStart] == NSOrderedSame)
|
||||
|
||||
Reference in New Issue
Block a user