Skip to content

feat(cron): explicit per-job time zones with pluggable sources #580

Closed

Description

@ajianaz

What problem does this solve?

Schedules must fire at the owner's wall-clock time (for example 09:00 Asia/Jakarta) without silently assuming UTC and without forcing a tz database into every binary.

Proposed solution

Per docs/automation-design.md §4 (owner decision 2026-11-11):

  • Every job has an explicit timezone (default cron.timezone, else UTC); cron list prints next_run in local and UTC.
  • Accepted: UTC, fixed offsets (+07:00), IANA names.
  • cron.tz_source: system (parse TZif from /usr/share/zoneinfo, no embedded data, default on Unix), bundled (cargo feature tz-bundled, for Windows/minimal containers), offset-only.
  • An unresolvable name is rejected on save, naming the source; never silently UTC.
  • DST (Hermes-compatible, wall clock preserved): a non-existent local time fires once at the first valid instant after the gap; an ambiguous one fires once on its first occurrence; every <dur> is unaffected. Table-driven tests; recorded in each fire.
  • Report the binary-size delta of tz-bundled.

Alternatives considered

UTC/offset only (owner wanted clear time zones); always bundling tz data (size).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions