Skip to content

Commit

Permalink
Add handling of BYSETPOS for BYDAY in repeat rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Jan 7, 2017
1 parent a0e7e9d commit d4a4e49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS
@@ -1,3 +1,9 @@
2.3.19 (2016-12-DD)
-------------------

Enhancements
- [core] added handling of BYSETPOS for BYDAY in recurrence rules

2.3.18 (2016-11-28)
-------------------

Expand Down
9 changes: 8 additions & 1 deletion SOPE/NGCards/iCalRecurrenceRule.m
Expand Up @@ -472,9 +472,16 @@ - (void) setByDayMask: (iCalByDayMask *) newByDayMask

- (iCalByDayMask *) byDayMask
{
NSArray *setPos;
NSString *day;

if (dayMask == nil && [[self byDay] length])
{
dayMask = [iCalByDayMask byDayMaskWithRuleString: [self byDay]];
day = [self byDay];
setPos = [self bySetPos];
if ([setPos count])
day = [NSString stringWithFormat: @"%@%@", [setPos lastObject], day];
dayMask = [iCalByDayMask byDayMaskWithRuleString: day];
[dayMask retain];
}

Expand Down

0 comments on commit d4a4e49

Please sign in to comment.