mirror of https://github.com/helm/helm
helm history, helm status, and helm list format release timestamps with the offset the release was stored with, so setting TZ has no effect on displayed times (the stored offset simply passes through). Convert to local time before formatting in the table writers for history, status (including test-suite hook times), and list. Go derives the local zone from TZ, so 'TZ=UTC helm history ...' now behaves as expected. JSON/YAML output is unchanged and keeps the stored offset. Golden files are unaffected: the pkg/cmd test init pins time.Local to UTC so table output stays deterministic across machines, and a regression test renders history in a fixed non-UTC zone to lock in the conversion. Closes #31902 Signed-off-by: Mukul <nmukul32@gmail.com>pull/32391/head
parent
ccb8f595ab
commit
05e9a98b5e
Loading…
Reference in new issue