cron-expression icon indicating copy to clipboard operation
cron-expression copied to clipboard

Runs skipped in DST not in the skipped zone

Open thewunder opened this issue 9 months ago • 2 comments

$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

thewunder avatar Mar 10 '25 19:03 thewunder

I confirmed the bug still exists in v3.4.0

thewunder avatar Mar 10 '25 19:03 thewunder

Likely a duplicate of #154

thewunder avatar Mar 14 '25 20:03 thewunder

@dragonmantank I confirmed that #203 fixes this issue

thewunder avatar Jun 13 '25 15:06 thewunder