Time recurrence error

if you apply the following custom recurrence pattern in Aspose.iCalendar:

DTSTART:20100428T160000
RRULE:FREQ=DAILY;COUNT=10;BYHOUR=8,9,10,11,12,13,16,15,14,18,19,20,17;BYMINUTE=30,0

Then the occurrences that Aspose.iCalendar generates are not correct. It does generate 10 occurrences but they are not the correct ones.

If you remove the COUNT=10, then the occurrences are correct.

also if you replace the COUNT=10 with an end date, then the occurrences are correct.

Please advise.


This message was posted using Aspose.Live 2 Forum

Hi,


We will look into it and will get back to you. Could you please use HOURLY frequency in the meanwhile or the alternates suggested by you.

DTSTART:20100428T160000
RRULE:FREQ=HOURLY;COUNT=10;BYHOUR=8,9,10,11,12,13,14,15,16,17,18,19,20;BYMINUTE=30,0

OR

RecurrencePattern pattern = new RecurrencePattern();
pattern.StartDate = DateTime.Parse(“04/28/2010 04:00 PM”);
RecurrenceRule rule = new RecurrenceRule();
rule.Frequency = Frequency.Hourly;
rule.Count = 10;
rule.ByHour.Add(new int[] {8,9,10,11,12,13,16,15,14,18,19,20,17});
rule.ByMinute.Add(new int[] {30,0});
pattern.RRules.Add(rule);

HOURLY will not work because I want the Date recurrence to still be independent of the time recurrence (which iCalendar supports).