Choose between bundled IANA tzdata or host system tzdata for Teleport’s DST‑aware timestamp conversion
29K reputation · 19 Sept 2023, 07:03 UTC
Goal
Ensure that audit log timestamps and time‑based role expressions are displayed and evaluated with correct daylight‑saving adjustments for any regional time zone chosen by administrators or users.
Uncertainty
Teleport stores all event timestamps in UTC and converts them for display using either the IANA time‑zone database bundled with the binary or the host system’s tzdata. It is unclear whether the conversion applies the current DST rules from the selected zone at runtime or uses fixed offsets from the bundled tzdata snapshot, and how outdated host tzdata might affect the result.
Questions
- Does Teleport apply the current DST rules from the selected time zone at conversion time, or does it rely on static offsets from the bundled IANA tzdata version?
- If it uses the bundled tzdata, how frequently is that snapshot updated relative to Teleport releases?
- If it defers to the host system’s tzdata, what guarantees exist for consistent DST handling across Teleport nodes running different operating‑system versions?