I think I found a bug: Yearly recurring events in January are not handled correctly, except for the first occurrence.
It's difficult to debug the code, but I think it's caused by the following line:
|
if ($imm > $offset && $imm <= $eop && ($_t == null || $imm < $_t)) { |
if ($imm > $offset && $imm <= $eop && ($_t == null || $imm < $_t)) {
If this is changed into:
if ($imm >= $offset && $imm <= $eop && ($_t == null || $imm < $_t)) {
then it's working.
Shall I make a PR for this?