Skip to content

[BUG] Time zone is not applied #85

@Blue20210921

Description

@Blue20210921

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The time zone I set in docker-compose is not being applied.

I set the time zone in docker-compose as specified:

environment:
  - PUID=1000
  - PGID=1000
  - TZ=Europe/Berlin

But when I edit and save a page in DokuWiki, the time is always minus 2 hours.

docker exec -it dokuwiki date
Thu Sep 25 18:30:10 CEST 2025
docker exec -it dokuwiki php -r 'echo date("Y-m-d H:i:s T")."\n";'
2025-09-25 16:30:30 UTC

Expected Behavior

The time zone should be adopted and the time saved when editing the pages should correspond to my time zone.

Steps To Reproduce

Set up the container and set the time zone to Europe/Berlin.
Create or edit a page in Dokuwiki and save it.
Compare the time shown at the bottom right, when it was last edited, with the time in the Europe/Berlin time zone.

Environment

- OS: Debian 13
- How docker service was installed:
sudo apt update
sudo apt install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

CPU architecture

x86-64

Docker creation

services:
  dokuwiki:
    image: lscr.io/linuxserver/dokuwiki:version-2025-05-14b
    container_name: dokuwiki
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    volumes:
      - config:/config
    restart: unless-stopped
    networks:
      - dokuwiki_caddy

volumes:
  config:
      
networks:
  dokuwiki_caddy:
    name: dokuwiki_caddy


docker compose up -d

Container logs

docker compose logs -f
dokuwiki  | [migrations] started
dokuwiki  | [migrations] 01-nginx-site-confs-default: skipped
dokuwiki  | [migrations] 02-default-location: skipped
dokuwiki  | [migrations] done
dokuwiki  | ───────────────────────────────────────
dokuwiki  | 
dokuwiki  |       ██╗     ███████╗██╗ ██████╗
dokuwiki  |       ██║     ██╔════╝██║██╔═══██╗
dokuwiki  |       ██║     ███████╗██║██║   ██║
dokuwiki  |       ██║     ╚════██║██║██║   ██║
dokuwiki  |       ███████╗███████║██║╚██████╔╝
dokuwiki  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
dokuwiki  | 
dokuwiki  |    Brought to you by linuxserver.io
dokuwiki  | ───────────────────────────────────────
dokuwiki  | 
dokuwiki  | To support LSIO projects visit:
dokuwiki  | https://www.linuxserver.io/donate/
dokuwiki  | 
dokuwiki  | ───────────────────────────────────────
dokuwiki  | GID/UID
dokuwiki  | ───────────────────────────────────────
dokuwiki  | 
dokuwiki  | User UID:    1000
dokuwiki  | User GID:    1000
dokuwiki  | ───────────────────────────────────────
dokuwiki  | Linuxserver.io version: 2025-05-14b-ls278
dokuwiki  | Build-date: 2025-09-19T15:47:14+00:00
dokuwiki  | ───────────────────────────────────────
dokuwiki  |     
dokuwiki  | using keys found in /config/keys
dokuwiki  | Existing install found, deleting install.php.
dokuwiki  | [custom-init] No custom files found, skipping...
dokuwiki  | [ls.io-init] done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions