Skip to content
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

Sunday #171

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Sunday #171

wants to merge 3 commits into from

Conversation

pekeler
Copy link
Contributor

@pekeler pekeler commented Jun 18, 2016

Fixes #152 (Sundays in cron can be either 0 or 7, Later only understood 0). This is better than the previous two PRs because this one also support ranges with 7 such as 5-7.

This implementation changes the existing parser such that it keeps the day-of-week represented as 0..7 (SUN..SUN) during parsing. And then only at the very end, right before returning the final set of schedules, do we change it to 1..7 (SUN..SAT) using the new postProcessSchedule() function.

@niftylettuce
Copy link

Per my work with Bree, I have an updated fork of this package called @breejs/later. See https://github.com/breejs/later if you would like to file this PR there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cron, on Sunday
2 participants