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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fixed-reference-date-interval-2910923-2.patch | 6.85 KB | erik.erskine |
Comments
Comment #2
erik.erskine commentedUpdated this to be more generic - the configuration now consists of a reference date and arbitrary interval.
This also operates on
\DateTimeImmutableobjects as per #2912347: Use \DateTimeImmutable rather than timestamp for all time calculations.Also includes tests for annual recurrences.
Comment #5
joachim commentedCommitted, 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.