Elm Time POSIX instant does not convert to regional date
0 reputation · 19 Oct 2026, 07:40 UTC
Goal
Convert a POSIX millisecond instant received through an Elm Time subscription into a regional wall-clock date for display.
Constraint
Elm 0.19.x core Time represents instants only and provides no civil date type, IANA zone database, or synchronous client-clock access. A timestamp alone does not carry an offset, so formatting it as a local date requires either a bundled zone database inside Elm or delegation to JavaScript Intl/Date through ports. Community packages vary by release, and browser Date behavior depends on the client time zone, so an incorrect choice can silently assume UTC or produce client-dependent results.
Which approach should handle regional conversion: an Elm-native zone database or JavaScript interop through ports? How should the application obtain and refresh the client offset or zone identifier without violating Elm's pure model? What checks detect incorrect results across daylight-saving transitions and future zone-rule changes?