Skip to content

Display object Last Modified times in the local timezone - #92

Merged
cloudlena merged 1 commit into
cloudlena:mainfrom
samisallam:feat/display-last-modified-in-local-timezone
Jul 29, 2026
Merged

Display object Last Modified times in the local timezone#92
cloudlena merged 1 commit into
cloudlena:mainfrom
samisallam:feat/display-last-modified-in-local-timezone

Conversation

@samisallam

Copy link
Copy Markdown

Summary

Object Last Modified timestamps in the bucket view were always shown in UTC (time.Time default formatting), which is awkward for operators who work in a regional timezone.

This change formats Last Modified with time.Local and documents the standard TZ environment variable so deployments can display wall-clock times (for example Europe/Berlin).

Changes

  • Format Last Modified as 2006-01-02 15:04:05 MST via time.Local in the bucket template
  • Import time/tzdata so timezone data is embedded in the binary
  • Install tzdata in the Alpine runtime image
  • Document TZ in the README configuration list

Compatibility

  • Without TZ, behavior remains UTC (same as before for typical containers)
  • With TZ set to an IANA zone (for example Europe/Berlin), the UI shows local time
  • No API or configuration breaking changes

Test plan

  • Build the image and run with TZ=Europe/Berlin
  • Open a bucket listing and confirm Last Modified shows a local offset/abbreviation (for example CEST) rather than +0000 UTC
  • Run without TZ and confirm timestamps remain in UTC

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.
@cloudlena
cloudlena merged commit 3cc4d24 into cloudlena:main Jul 29, 2026
1 check failed
@cloudlena

Copy link
Copy Markdown
Owner

Nice. Thanks, @samisallam!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants