Skip to content

cron: interpret Bun.cron.parse() and in-process schedules in local time; add { tz } option - #35122

Merged
Jarred-Sumner merged 11 commits into
mainfrom
claude/farm/7c8c2ee1/cron-local-time
Jul 22, 2026
Merged

Jarred-Sumner merged 11 commits into
mainfrom
claude/farm/7c8c2ee1/cron-local-time

cron: add { tz } option; pin cron.test.ts parse block to UTC

1a19e7c
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 22, 2026 in 20m 55s

Code review found 1 important issue

Found 2 candidates, confirmed 3. See review comments for details.

Details

Severity Count
🔴 Important 1
🟡 Nit 2
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit packages/bun-types/bun.d.ts:7609-7618 bun-types fixture missing coverage for new CronOptions / {tz} argument

Annotations

Check warning on line 7618 in packages/bun-types/bun.d.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

bun-types fixture missing coverage for new CronOptions / {tz} argument

The new `CronOptions` interface and the third `options?: CronOptions` argument added to `Bun.cron.parse()` and the in-process `Bun.cron(schedule, handler, options?)` overload have no coverage in `test/integration/bun-types/fixture/cron.ts` — the fixture already exercises every other cron overload and has a `declare const ...: Bun.Cron*` line for every other exported cron interface. Consider adding `expectType(Bun.cron.parse("@hourly", Date.now(), { tz: "UTC" })).is<Date | null>()`, `expectType(B