WarUI

Timezone and date-time semantics

GRID-A10-F14P1beyond-baselinePlanned

Defines how date-time filters interpret cell values and user input across timezones and DST transitions. Columns are classified as date-only, local date-time or instant (UTC). This prevents the classic off-by-one-day bug.

Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Orders with instant timestamps that cross a DST change (US 2024-03-10), together with a date-only column.

Expected behavior

Changing the display timezone moves instant rows across day boundaries, and the equals-day filter follows the selected zone. Date-only rows never shift. The DST day includes exactly the rows within its 23-hour span.

Planned API surface

columnDefs[].dateKind ('dateOnly' | 'localDateTime' | 'instant')filterParams.timeZonegridOptions.timeZonefilterParams.granularity

Acceptance criteria

  • dateOnly values are compared without any timezone conversion. (pending)
  • For instant values, the day boundaries of 'equals day D' are computed in the configured timeZone. (pending)
  • On a DST transition day, the range covers the correct 23 or 25 hours. (pending)
  • The filter model stores the timezone used for any instant-based condition. (pending)
  • Restoring a model saved in another timezone reproduces the original instant range. (pending)