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

Bad next on 'every 1 hours' #229

Open
pjbrinck opened this issue Apr 25, 2018 · 0 comments
Open

Bad next on 'every 1 hours' #229

pjbrinck opened this issue Apr 25, 2018 · 0 comments

Comments

@pjbrinck
Copy link

Run this

    let date = new Date();
    console.log(later.schedule(later.parse.text('every 1 hours')).prev(2, date));
    console.log(later.schedule(later.parse.text('every 1 hours')).next(2, date));
    console.log(later.schedule(later.parse.text('every 30 minutes')).prev(2, date));
    console.log(later.schedule(later.parse.text('every 30 minutes')).next(2, date));

and notice the odd current time in entry on of line two

[ 2018-04-25T08:00:00.000Z, 2018-04-25T07:00:00.000Z ]
[ 2018-04-25T08:52:48.611Z, 2018-04-25T09:00:00.000Z ]
[ 2018-04-25T08:30:00.000Z, 2018-04-25T08:00:00.000Z ]
[ 2018-04-25T09:00:00.000Z, 2018-04-25T09:30:00.000Z ]
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