-
Notifications
You must be signed in to change notification settings - Fork 244
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
wrapping months doesn't appear to work correctly #48
Comments
There is a bug in the Shouldn't be a hard fix, basically you need to go from |
would it make sense to modify that function so min is always the lesser of the two values ? |
No, because that would be the opposite of what you want. You don't want the months between 2 and 11 (this would be |
Same issue exists for days : sat-mon returns empty, as does any range that passes sunday |
It's been awhile but the pull request I have outstanding fixed the issue On Wed, Sep 7, 2016 at 1:43 PM Emily [email protected] wrote:
|
Do you know if that will also fix the days wrapping? Or do I have to apply the fix elsewhere? |
Thanks! Confirmed it's working, used this file: https://raw.githubusercontent.com/solomon23/later/070b7ed2ad70e5dc4fb344299ba7fb67874e2b2c/later.js |
@bunkat Any update on this? I have a requirement where I had to run a task for every 45 days and the current version of laterjs is not returning the expected next occurrence. It returns the first day of the next month as the next occurrence. I tried @solomon23's fix. The recur parser seems to work fine but the text parser is not returning the expected dates. |
It's now may. If i use this cron:
var s = later.parse.cron('15 10 * nov-feb mon-tue');
later.schedule(s).next(10);
it returns me this
[ Mon Dec 01 2014 02:15:00 GMT-0800 (PST),
Tue Dec 02 2014 02:15:00 GMT-0800 (PST),
Mon Dec 08 2014 02:15:00 GMT-0800 (PST),
Tue Dec 09 2014 02:15:00 GMT-0800 (PST),
Mon Dec 15 2014 02:15:00 GMT-0800 (PST),
Tue Dec 16 2014 02:15:00 GMT-0800 (PST),
Mon Dec 22 2014 02:15:00 GMT-0800 (PST),
Tue Dec 23 2014 02:15:00 GMT-0800 (PST),
Mon Dec 29 2014 02:15:00 GMT-0800 (PST),
Tue Dec 30 2014 02:15:00 GMT-0800 (PST) ]
I would expect it to start in nov and wrap to feb of next year.
The text was updated successfully, but these errors were encountered: