Skip to content

Commit

Permalink
O->G: Sync COUNT RRule if it exists (even though Outlook GUI has no c…
Browse files Browse the repository at this point in the history
…apability).

#2016
  • Loading branch information
phw198 committed Dec 8, 2024
1 parent e64f09a commit 1821ec2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ private static String buildRrule(PatternedRecurrence oPattern, System.DateTime?
#endregion

#region RECURRENCE RANGE
if (oPattern.Range.Type == RecurrenceRangeType.EndDate && recurrenceEndUtc != null) {
if (oPattern.Range.Type == RecurrenceRangeType.Numbered) {
Google.Recurrence.addRule(rrule, "COUNT", oPattern.Range.NumberOfOccurrences.ToString());

} else if (oPattern.Range.Type == RecurrenceRangeType.EndDate && recurrenceEndUtc != null) {
log.Fine("Checking end date.");
Google.Recurrence.addRule(rrule, "UNTIL", Google.Recurrence.IANAdate((System.DateTime)recurrenceEndUtc));
}
Expand Down

0 comments on commit 1821ec2

Please sign in to comment.