Skip to content

All services: align the TZ setting with the service template - #356

Merged
crypt0rr merged 1 commit into
mainfrom
tz-env-consistency
Oct 2, 2026
Merged

crypt0rr merged 1 commit into
mainfrom
tz-env-consistency

Conversation

@jackspiering

Copy link
Copy Markdown
Collaborator

What changed

The service template defines TZ=Europe/Amsterdam in .env with a link to the list of time zones, and passes it on as TZ=${TZ}. 119 of the 122 services already had the .env line. This PR fixes the ones that differed:

  • Dockge, NewWallpaperWhoDis, Radicale: .env had no TZ. Added the template block.
  • Open WebUI, Tandoor, RustDesk Server: the TZ line now has the same comment as the template.
  • Gramps Web, Mealie: compose.yaml now reads TZ from .env instead of a fixed Europe/Amsterdam.

Why

A fixed value in compose.yaml means that changing TZ in .env has no effect. The defaults stay the same, so existing installations keep their current time zone.

This follows the earlier review request in #247 to keep TZ in line with the template.

Not in this PR

  • Paperless, Picard, and Posterizarr have the same fixed value. fix: Use configured timezone (Paperless, Picard, Posterizarr) #329 fixes those.
  • Seafile uses its own TIME_ZONE variable and is unchanged.
  • In about 30 services .env defines TZ but compose.yaml does not pass it to a container. That includes Dockge, NewWallpaperWhoDis, and Radicale from this PR. A follow-up PR will handle those after checking each image.

Testing

  • docker compose config --quiet passes in all eight service directories.
  • docker compose config resolves TZ to Europe/Amsterdam for Gramps Web (both containers) and Mealie, as before. With another value set, that value is passed on.
  • git diff --check passes.

Not tested: I did not start the stacks. The change only replaces a fixed value with a variable that has the same default.

The service template defines TZ=Europe/Amsterdam in .env with a link to
the list of time zones, and passes it on as TZ=${TZ}. A few services
did not follow it.

- Dockge, NewWallpaperWhoDis, Radicale: add the TZ block to .env.
- Open WebUI, Tandoor, RustDesk Server: use the template comment on the
  TZ line.
- Gramps Web, Mealie: read TZ from .env instead of a fixed
  Europe/Amsterdam in compose.yaml.

Paperless, Picard, and Posterizarr have the same fixed value. #329
already fixes those.
@crypt0rr
crypt0rr merged commit 08d444d into main Oct 2, 2026
1 check passed
@crypt0rr
crypt0rr deleted the tz-env-consistency branch October 2, 2026 21:09
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