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
if we have both day and weekday values, there is an incorrect calculation. See
sample: http://jsfiddle.net/SmYqS/
man 5 crontab:
Note: The day of a command's execution can be specified by two fields — day of month, and day of week. If both fields are restricted (i.e., aren't *), the command will be run when either field matches the current time.
The text was updated successfully, but these errors were encountered:
Thanks for catching this. I remember reading that and then apparently completely forgot about it. I'll create a fix shortly, but in the meantime you can work around this by breaking up the cron schedule and concatenating the results:
var s1 = cronParser().parse('* * 10 * *');
var s2 = cronParser().parse('* * * * 5');
s1.schedules = s1.schedules.concat(s2.schedules);
s1.exceptions = s1.exceptions.concat(s2.exceptions);
var result = later(60, true).getNext(s1);
if we have both day and weekday values, there is an incorrect calculation. See
sample: http://jsfiddle.net/SmYqS/
man 5 crontab:
Note: The day of a command's execution can be specified by two fields — day of month, and day of week. If both fields are restricted (i.e., aren't *), the command will be run when either field matches the current time.
The text was updated successfully, but these errors were encountered: