This patch adds a new recurring period - annual. This plugin specifies a reference date from which the day and month are used to determine a recurrence each year on that date.

Comments

erik.erskine created an issue. See original summary.

erik.erskine’s picture

Title: Add an annual recurring period » Add a fixed reference date + interval recurring period
StatusFileSize
new6.85 KB

Updated this to be more generic - the configuration now consists of a reference date and arbitrary interval.

This also operates on \DateTimeImmutable objects as per #2912347: Use \DateTimeImmutable rather than timestamp for all time calculations.

Also includes tests for annual recurrences.

  • joachim committed 0deb994 on 8.x-1.x authored by erik.erskine
    Issue #2910923 by erik.erskine: Added a period plugin for fixed...

joachim credited joachim.

joachim’s picture

Assigned: Unassigned » joachim
Status: Needs review » Fixed

Committed, with a few formatting and docs tweaks, and the tests refactored to use a PHPUnit data provider -- which makes it much easier to add more cases.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.