bradymholt / cRonstrue

JavaScript library that translates Cron expressions into human readable descriptions
http://bradymholt.github.io/cRonstrue/
MIT License
1.3k stars 169 forks source link

Wrong output generated for the last nth day of the month. #243

Closed fayvaz closed 2 years ago

fayvaz commented 2 years ago

Example expression: 0 15 10 ? 6L

cRonstrue's output: At 10:15 AM, on the last Saturday of the month

other Quartz cron generator's output: At 10:15:00am, the last Friday of the month, every month

bradymholt commented 2 years ago

Which other Quartz cron generator are you referring to?

You need to pass dayOfWeekStartIndexZero: false as an option to see this behavior.

fayvaz commented 2 years ago

Many thanks @bradymholt for your quick response. It works fine!!!