cron-expression
cron-expression copied to clipboard
Runs skipped in DST not in the skipped zone
$schedule = new CronExpression('0 10 * * *');
$runs = $schedule->getMultipleRunDates(3, '2025-03-08 09:00:00', timeZone: 'America/Chicago');
Produces:
2025-03-08 10:00:00.0 America/Chicago (-06:00) 2025-03-10 10:00:00.0 America/Chicago (-05:00) 2025-03-11 10:00:00.0 America/Chicago (-05:00)
Completely skipping the day of the spring forward. I had this skip 3 important jobs in prod yesterday all running at different hours well after the skipped 2-3AM zone!
Running v3.3.3 on PHP 8.3.6
I confirmed the bug still exists in v3.4.0
Likely a duplicate of #154
@dragonmantank I confirmed that #203 fixes this issue