simshaun / recurr

PHP library for working with recurrence rules (RRULE); meant to help with recurring calendar events.
Other
1.21k stars 135 forks source link

Recurrence by day can be a multi day scope. #205

Open Roywcm opened 1 year ago

Roywcm commented 1 year ago

When I parse something like this:

$startDate   = new \DateTime('2022-12-06 00:00:00');
$endDate   = new \DateTime('2022-12-08 00:00:00');
new \Recurr\Rule('RRULE:FREQ=WEEKLY;BYDAY=TU', $startDate, $endDate);

The collection which returns do have a weekly scope with an end date on thursdays but a starting day at tuesdays. Shouldn't this be one day, only the thursdays?

This happens with the synchronization with Google Calendar, where a weekly event was updated from three days to one day. Google Calendar only updated the recurrence value and not the scope of dates