Skip to content

[Request]: Store intervals: a step grid in a local time zone (or with an offset) #945

Closed

Description

@jimhoyd

Observed while implementing #929 (PR #943). intervals.step aligns bounds to whole multiples counted from 1970-01-01T00:00:00Z, in UTC. step: PT1H is therefore on the hour in UTC and in whole-hour zones, but a half-hour zone (for example UTC+05:30) never gets local on-the-hour slots. A daily grid (P1D) is UTC midnight, and nothing follows daylight saving.

Today the workaround is to convert on the client or use integer bounds (minutes in local time).

Possible shapes: an origin instant for the grid, which is cheap and exact but fixed-offset only, or a timeZone (IANA). The time zone is not exact arithmetic: it needs tz data in the write path and has to handle DST gaps and overlaps.

Activity

  1. added
    enhancement
    on Sep 29, 2026
  2. added a commit that references this issue on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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