Closed guscastro closed 5 years ago
I've had a further look and it seems like decreasing count
even when the event occurrence is excluded
in https://github.com/apognu/gocal/blob/master/rrule.go would do the job.
Thank you for reporting this.
I will check the behavior of several mainstream implementations to confirm what should actually happen and push a fix if mine is wrong.
Should have time to do this romorrow.
This is fixed. Please reopen if necessary.
Thanks for the quick fix, @apognu. Does this if statement also need a similar change? Here is an example of a test case that triggers the issue there:
BEGIN:VEVENT
DTSTART:20190108T160000Z
DTEND:20190108T170000Z
RRULE:FREQ=MONTHLY;COUNT=5;BYDAY=TU
EXDATE:20190122T160000Z
END:VEVENT
Expected: 2019-01-08 2019-01-15 2019-01-29 2019-02-05
Actual: 2019-01-08 2019-01-15 2019-01-22 2019-01-29 2019-02-05
Steps: Have a recurrent event with a count and an exception date e.g.:
Expected (according to Google Calendar):
COUNT
should be applied beforeEXDATE
. E.g. result:Actual:
COUNT
is applied afterEXDATE
: E.g. result:Would you accept a PR to fix this?