Open tochix opened 6 months ago
I believe I have a fix for this, it is due to how time math was being handled. Before I release a fix, could I get your thoughts on https://github.com/dragonmantank/cron-expression/discussions/181 as it will impact the overall solution?
It seems that when the last day of the month cron expression(
59 23 L * *
) is used, thegetNextRunDate
method skips March for some years and returns April instead. I was thinking this had to do with 2024 being a leap year, but when I ran test cases for other years, it turned out to not be only for leap years.results in:
So instead of returning last day of March, it returns last day of April for the years 2024, 2019, 2013 and 2002.