Commit 33df887
committed
fix: normalize hour=24 to 0 in cron date parts (Node 20 Intl bug)
In Node 20, Intl.DateTimeFormat with hourCycle='h23' can return '24'
instead of '00' for midnight. This caused computeNextCronRunAt to never
match hour=0 expressions (e.g. '0 0 * * 0'), exhausting the search loop
and throwing. Normalize rawHour === 24 to 0 to fix.1 parent e8b59c6 commit 33df887
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
0 commit comments