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

wrong get next time #29

Closed
gustavfagerlind opened this issue Nov 5, 2014 · 2 comments
Closed

wrong get next time #29

gustavfagerlind opened this issue Nov 5, 2014 · 2 comments
Assignees

Comments

@gustavfagerlind
Copy link

var nextTime = parser.parseExpressionSync("0 23 * * 5",{"currentDate": new Date(Date.parse('2014-10-23'))}).next();
console.log(nextTime)
var nextTime = parser.parseExpressionSync("0 23 * * 5",{"currentDate": new Date(Date.parse('2014-10-25'))}).next();
console.log(nextTime)

gives:

Fri Oct 24 2014 23:00:00 GMT+0200 (CEST)
Fri Oct 31 2014 23:00:00 GMT+0100 (CET)

I think it should be one trigger on friday the 31th aswell?

@harrisiirak harrisiirak self-assigned this Nov 11, 2014
@harrisiirak
Copy link
Owner

Hi Gustav!

I'm not understanding the issue here. The code you pasted works exactly as you pasted.

Regards,
Harri

@gustavfagerlind
Copy link
Author

You are correct, my initial error was from an older version (0.3.5), and I was sloppy when i tried latest (0.4.5) where it has been solved.
Sorry for the inconvinience.

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

2 participants