Skip to content

Yearly recurring events in January are not handled correctly #59

@lokonli

Description

@lokonli

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions