pbyrne/cron-checker

Error validating days of week

Closed this issue · 1 comments

I just found an error when validating days of week - like with the following crontab entry (that is not valid):

30 8 * * 1,2,3,4,5,6,7 /usr/local/bin/wac 4:8 5:8 6:10 7:10 8:8 @Wacjob

the first day of week, as Sunday, should start from zero and the last day should be Monday (6)
However if I pass the command above to the cron-checker I get:

image

Thanks for reporting this. It looks like I wasn't properly converting 7 to mean Sunday (which was causing the "Saturdays an s" at the end). I've got that sorted out and pushed to production:

screenshot of fixed bug

Sorry about that not working for you, and again thanks for reporting it.