Skip to content

Commit

Permalink
fix(calendar): handle tz with until in rrule (fixes #4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfux committed Feb 2, 2020
1 parent 57bbb25 commit 24fc9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SOPE/NGCards/iCalTimeZonePeriod.m
Expand Up @@ -300,7 +300,7 @@ - (NSCalendarDate *) occurrenceForDate: (NSCalendarDate *) refDate;
= [(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;
Expand Down

0 comments on commit 24fc9a9

Please sign in to comment.