You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, this is expected behavior - I overlooked this section in the documentation:
Croner also allows you to change how the day-of-week and day-of-month conditions are combined. By default, Croner (and Vixie cron) will trigger when either the day-of-month OR the day-of-week conditions match. For example, 0 20 1 * MON will trigger on the first of the month as well as each Monday. If you want to use AND (so that it only triggers on Mondays that are also the first of the month), you can pass { legacyMode: false }. For more information, see issue #53.
Describe the bug
When both
day of month
andday of week
are specified in the pattern, the next run times returned are incorrect.To Reproduce
Run the following code:
Expected behavior
The output for
0 0 1-31 * 4
should match the output for0 0 * * 4
.System:
Additional context
The issue also occurs with other
day of month
expressions, such as0 0 1,2 * 4
or0 0 3,4,5 * 4
.The text was updated successfully, but these errors were encountered: