-
Notifications
You must be signed in to change notification settings - Fork 244
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
Cron, on Sunday #152
Comments
Does 0, 6 do what you want? Or SAT, SUN? Or are they all broken at the moment? |
Yes, everything works, no problem. It just caused me a lot of frustration as, according to Wikipedia, 7 should also work. |
Yea, this is broken. Weekdays in Cron are 0 SUN Later's internal representation of weekdays are: 1 SUN So far so good. The test title Line 311 in 5d38cc3
it('should parse 7 as Sunday', function() {
var p = parse('* * * * * 7', true);
p.schedules[0].should.eql({d: [1]});
}); Right now, Later parses '* * * * * 7' as Saturday which is incorrect. |
cron('0 0 * * 6,7') should be on Saturday and Sunday.
1-6 works for Monday to Saturday. It writes 2-7 to .d, but cron 7, which is Sunday, adds 8 to .d, instead of 1.
The text was updated successfully, but these errors were encountered: