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
Cron: make handling of repeated DST hours configurable #9902
Five-minute polling schedules in a local timezone can pause for over an hour when clocks go back. #8800 confirms that using only the first occurrence of a repeated local time is intentional, but there is no option to keep polling through both occurrences.
This creates a 65-minute gap, skipping 12 five-minute runs during the repeated hour. We confirmed the same behavior with Effect.schedule and Effect.repeat using TestClock.
What is the feature you are proposing to solve the problem?
Let callers choose whether repeated local times run on the first occurrence, the second, or both, while keeping the current default. The option should work consistently across the Cron APIs and Schedule.cron.
#6490 explored configurable DST handling but was closed without merging. Could we revisit that approach?
What alternatives have you considered?
UTC cron schedules and interval schedules work well for simple polling. However, UTC schedules shift relative to local time across DST, and intervals do not express local calendar schedules. A configurable policy would let applications keep those schedules while choosing how to handle the repeated hour.
changed the title [-]Allow configurable handling of repeated DST hours in `Cron` and `Schedule.cron`[/-][+]Cron: make handling of repeated DST hours configurable[/+]on Oct 25, 2026
Hey, I'd like to work on this if nobody has picked it up yet. I can look into adding an option to handle the repeated DST hour (first occurrence, second occurrence, or both), while keeping the current behavior as the default. I'll also add tests around the DST transition using TestClock and check that the behavior stays consistent across Cron and Schedule.cron. Would this approach be okay with the maintainers?
Thanks @fubhy — this is tracked internally as EFF-2905 and I've added your request to fix it there. A PR will be linked back to this issue once it's ready.
Activity
[-]Allow configurable handling of repeated DST hours in `Cron` and `Schedule.cron`[/-][+]Cron: make handling of repeated DST hours configurable[/+]harshitsharmaaaa commentedon Oct 25, 2026
Hey, I'd like to work on this if nobody has picked it up yet. I can look into adding an option to handle the repeated DST hour (first occurrence, second occurrence, or both), while keeping the current behavior as the default. I'll also add tests around the DST transition using
TestClockand check that the behavior stays consistent acrossCronandSchedule.cron. Would this approach be okay with the maintainers?fubhy commentedon Oct 25, 2026
@effect-bot
effect-bot commentedon Oct 25, 2026
Thanks @fubhy — this is tracked internally as EFF-2905 and I've added your request to fix it there. A PR will be linked back to this issue once it's ready.