Closed VladLide closed 4 months ago
Think this is actually correct based on the crontab spec:
""" Finally, if either the month or day of month is specified as an element or list, and the day of week is also specified as an element or list, then any day matching either the month and day of month, or the day of week, shall be matched """
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html
The library appears to incorrectly calculate the next execution date when processing cron expressions that include certain day, month, and day of week constraints. If the specified month is current and a specific day of the week is specified.
Example problem:
Result:
The expected output should contain a time of May 1, 2025, given the constraints, but the library returns today's date instead.