bunkat / 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.
http://bunkat.github.io/later/
MIT License
2.42k stars 244 forks source link

Issue with parsing "0 0 6 ? * 2,3,4,5,6,7,1 *" #230

Open rajeshwarpatlolla opened 6 years ago

rajeshwarpatlolla commented 6 years ago

The cron string(quartz type) should give the result related to At 06:00 AM, only on Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, and Monday, but it is giving me wrong output as shown in the image.

screen shot 2018-05-20 at 1 36 58 pm

I am using later.parse.cron("0 0 6 ? * 2,3,4,5,6,7,1 *") to parse the cron string.

priyesh2609 commented 4 years ago

try this - later.parse.cron("0 0 6 ? * 2,3,4,5,6,7,1 *", true)