Skip to content

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