docker icon indicating copy to clipboard operation
docker copied to clipboard

Missing timezone

Open Ninos opened this issue 4 years ago • 2 comments

A timezone is missing in the php configuration. As default php uses UTC (wrong time in log-files, archives...). Normally it should be enough adding date.timezone = "add content of /etc/timezone" to php.ini-file in DOCKERFILE.

Ninos avatar Dec 01 '21 12:12 Ninos

You can also use the TZ environment variable, eg:

docker run -e TZ=Australia/Melbourne matomo or in docker-compose.yml

version: '3'
services:
  matomo:
    image: matomo
    environment:
      - 'TZ=Australia/Melbourne'
...

cseufert avatar Dec 08 '21 01:12 cseufert

Already tried, not working, because PHP timezone ist different/independent to system timezone

Ninos avatar Dec 08 '21 02:12 Ninos