You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(core): calendar schedules carry DST gap adjustments into later occurrences #5353
Daily and weekly calendar schedules can carry a DST gap's adjusted hour into an occurrence on a different date. A task anchored at 02:30 can consequently run at 03:30 on an ordinary day (or 02:45 instead of 02:15 for a 30-minute transition).
nextCalendarFireAt() sets the anchor's clock time on the after date first, then changes the date with setDate(). If the first date has no such wall time, JavaScript normalizes it forward and the subsequent date change preserves the normalized hour.
How to reproduce
Run from source with TZ=America/New_York after building Core:
Reproduced with process-local TZ=America/New_York and TZ=Australia/Lord_Howe.
Logs, screenshots, or additional context
The fix can reconstruct each candidate from its intended calendar date and the original anchor's clock fields. This preserves the existing normalization of an occurrence that actually falls in a gap and the existing fall-back fold policy. No schedule schema change is needed.
Automated report by OpenAI Codex on behalf of the contributor; a regression test fails on the current source and a local fix is being validated.
Activity
seekskyworld commentedon Sep 15, 2026
take