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

Every second behavior #51

Closed
xpepermint opened this issue Dec 15, 2015 · 2 comments
Closed

Every second behavior #51

xpepermint opened this issue Dec 15, 2015 · 2 comments
Assignees
Labels

Comments

@xpepermint
Copy link

var now = new Date(); 
var cron = require('cron-parser'); 
var s = cron.parseExpression('* * * * * *', {currentDate: now, iterator: true}); 
console.log(`now: ${now.toString()}, next: ${s.next().value}`);
// -> now: Tue Dec 15 2015 10:11:52 GMT+0100 (CET), next: Tue Dec 15 2015 10:11:52 GMT+0100 (CET)

Is this expected result (the two dates are the same)? I would expect the next to be 1sec in the future.

@harrisiirak harrisiirak self-assigned this Dec 15, 2015
@xpepermint
Copy link
Author

great!

@harrisiirak
Copy link
Owner

Np! Thank you for reporting that one. It's really weird that I didn't notice that before, because it's quite obvious as I see it now. Released as "1.1.0".

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

No branches or pull requests

2 participants