Closed boryn closed 3 years ago
Every tuesday at 18:00:00 with start at "2021-08-31 09:00:00" and until at "2021-08-31 17:00:00" produces the event at "2021-08-31 18:00:00" but IMHO it should not.
$r = new When(); $r->startDate(new \DateTime("2021-08-31 09:00:00")) ->rrule("FREQ=WEEKLY;BYDAY=TU;BYHOUR=18;BYMINUTE=0;BYSECOND=0") ->until(new \DateTime("2021-08-31 17:00:00")) ->generateOccurrences(); print_r($r->occurrences);
Nice find, I went ahead and fixed this in v3.1.3.
Every tuesday at 18:00:00 with start at "2021-08-31 09:00:00" and until at "2021-08-31 17:00:00" produces the event at "2021-08-31 18:00:00" but IMHO it should not.