cron-expression icon indicating copy to clipboard operation
cron-expression copied to clipboard

Last day of month (L) does not work in tandem with other days of month

Open glemoine-intouch opened this issue 1 year ago • 1 comments

Having trouble with this cron expression:

0 23 L,15 * *

This is a valid cron expression (Last day of the month AND 15th of the month), but is being validated as false by this line https://github.com/dragonmantank/cron-expression/blob/master/src/Cron/DayOfMonthField.php#L142

If you remove this line, it appears to work just fine, and produces next run dates as you'd expect. Any reason why this extra validation exists, and if not could it be removed and/or modified to allow expressions like the above to validate?

glemoine-intouch avatar Sep 19 '24 13:09 glemoine-intouch

Bump

aGervaisIntouch avatar Oct 02 '24 15:10 aGervaisIntouch