breejs / later

*Maintained fork of Later.* A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
https://breejs.github.io/later/
MIT License
134 stars 13 forks source link

schedule(s).next(1, d) fails if s = { schedules: [{ Y: [2012] }, { Y: [2017] }] } and d = new Date('2013-03-21T00:00:05Z') with TypeError: a.getTime is not a function #14

Closed yrambler2001 closed 9 months ago

yrambler2001 commented 3 years ago

schedule(s).next(1, d) fails if s = { schedules: [{ Y: [2012] }, { Y: [2017] }] } d = new Date('2013-03-21T00:00:05Z') with TypeError: a.getTime is not a function image

yrambler2001 commented 3 years ago

With the fix: image

titanism commented 9 months ago

Thank you 🙏 Merged and released to npm 🎉

breejs/later v4.2.0 released to npm https://github.com/breejs/later/releases/tag/v4.2.0