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

later.parse.cron not working properly if cron expression include days like MON, WED and FRI #233

Open
tak2ashokkumar opened this issue Jun 26, 2018 · 0 comments

Comments

@tak2ashokkumar
Copy link

Cron Expression "0 0 3 ? *" WED,FRI * means "At 03:00 AM, only on Wednesday and Friday"

var cron_schedule = later.parse.cron(0 0 3 ? * WED,FRI *);
var first_schedule = later.schedule(cron_schedule).next();

here in this case first_schedule is not giving appropriate results...

In Same way if i do

var cron_schedule_with_text = later.parse.text(At 03:00 AM, only on Wednesday and Friday);
var first_schedule_date = later.schedule(cron_schedule_with_text ).next();

Even in this case also first_schedule_date is not giving appropriate results...

But one more thing i observed here is
Result of "first_schedule" and "first_schedule_date" has considerable difference.

Please check it ASAP.

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

No branches or pull requests

1 participant