Display object Last Modified times in the local timezone - #92
Merged
cloudlena merged 1 commit intoJul 29, 2026
Merged
Conversation
Render Last Modified using time.Local and a stable timestamp format so operators can set TZ (for example Europe/Berlin) and see wall-clock times instead of always UTC. Embed time/tzdata and install tzdata in the image so timezone data is available in minimal container environments.
Owner
|
Nice. Thanks, @samisallam! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Object Last Modified timestamps in the bucket view were always shown in UTC (
time.Timedefault formatting), which is awkward for operators who work in a regional timezone.This change formats Last Modified with
time.Localand documents the standardTZenvironment variable so deployments can display wall-clock times (for exampleEurope/Berlin).Changes
2006-01-02 15:04:05 MSTviatime.Localin the bucket templatetime/tzdataso timezone data is embedded in the binarytzdatain the Alpine runtime imageTZin the README configuration listCompatibility
TZ, behavior remains UTC (same as before for typical containers)TZset to an IANA zone (for exampleEurope/Berlin), the UI shows local timeTest plan
TZ=Europe/BerlinCEST) rather than+0000 UTCTZand confirm timestamps remain in UTC