OCSInventory-NG / OCSInventory-Docker-Image

Docker image for OCSInventory Server
GNU General Public License v3.0
80 stars 96 forks source link

timezone #109

Closed efschu closed 1 year ago

efschu commented 1 year ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Docker host's operating system : debian bookworm/sid Mysql Server version : mysql:8.0

Docker informations

Docker compose version : Docker version 20.10.18 Docker version : same

Problem's description

Describe your problem here

I try to set the OCS time correctly to Europe/Berlin, while its set correctly inside docker container shell, its wrong in ocsreports page.

I set the timezone value in /etc/php/8.1/apache2/php.ini and in /etc/php/8.1/cli/php.ini but it is still not honored.

So where can I set the timezone correctly?

Thnx in advance

efschu commented 1 year ago

Problem was related to database container timezone Cus there is no timedatectl in docker db container I solved it by doing it that way:

rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime

reboot done