Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glemoine-intouch opened this issue Sep 19, 2024 · 1 comment

Comments

@glemoine-intouch
Copy link

glemoine-intouch commented Sep 19, 2024

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?

@aGervaisIntouch
Copy link

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants