fix(calendar): handle tz with until in rrule (fixes #4943)

This commit is contained in:
root
2020-02-02 12:14:48 +01:00
parent 57bbb255cc
commit 24fc9a950b

View File

@@ -300,7 +300,7 @@
= [(iCalDateTime *) [self uniqueChildWithTag: @"dtstart"] dateTime];
else if ([rrule untilDate] == nil || [refDate compare: [rrule untilDate]] == NSOrderedAscending)
tmpDate = [self _occurrenceForDate: refDate byRRule: rrule];
else if ([refDate compare: [rrule untilDate]] == NSOrderedDescending)
else if ([[self _occurrenceForDate: refDate byRRule: rrule] compare: [rrule untilDate] ] == NSOrderedAscending)
tmpDate = [rrule untilDate];
return tmpDate;