Skip to content

Manage system time zone#1465

Merged
gulien merged 3 commits intogotenberg:mainfrom
davpsh:issue-887
Feb 13, 2026
Merged

Manage system time zone#1465
gulien merged 3 commits intogotenberg:mainfrom
davpsh:issue-887

Conversation

@davpsh
Copy link
Contributor

@davpsh davpsh commented Feb 3, 2026

Description

This PR contains changes proposed in #887 (comment)

Changes

  • adds an explicit default system time zone UTC
  • adds system time zone output in debug endpoint (/debug)
  • adds TIMEZONE building argument to build image with prefered time zone

Examples

Build image with prefered time zone

docker build --build-arg TIMEZONE=America/New_York ... 

Run image with prefered time zone

docker run --rm -p "3000:3000" gotenberg/gotenberg:8 gotenberg -e TZ=America/New_York

todo

  • add examples in documentation

@gulien gulien added the enhancement New feature or request label Feb 3, 2026
FROM debian:13-slim AS base-image-stage

ARG TIMEZONE=UTC
ENV TZ=$TIMEZONE
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important! To correctly install and configure the time zone, the tzdata package must be installed.
In some common Linux distributions, such as Debian and CentOS, the tzdata package is already installed in the base Docker images. If the base image changes, we will need to add the commands to install the package.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment about that? So that the futur me does not miss it 😄

@gulien gulien merged commit 3775731 into gotenberg:main Feb 13, 2026
18 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments