Ad Widget

Collapse

Zabbix Docker log and latest data time not reflective of the local host time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leigh.latham
    Junior Member
    • Nov 2019
    • 3

    #1

    Zabbix Docker log and latest data time not reflective of the local host time

    Hi,


    We are experiencing an issue with our Zabbix Docker installation 'zabbix-web-nginx-pgsql:ubuntu-4.4-latest' where the time recorded against logs is not correct - the time zone being reported by php_info is Europe/Riga. The time on the clock dashboard widget is correct FYI.

    I have searched the forums and online resources and have come up with suggestions to identify the PHP ini time which is set correctly to UTC. The only reference to Europe/Riga i could identify was in the docker_compose file .env_web. I changed this to Europe/Riga and then restarted the container - the issue persists.

    My questions are:

    Does anyone know where this timezone could be coming from? I'm happy for further suggestions of places to check to identify this. PHP 7.2 FPM directory config seems to be set correctly.
    Does changing the .env_web timezone require the docker container to be completely rebuilt? As we have not performed this yet, only a restart.

    Apologies if this is a common question, perhaps i have overlooked a relevant thread which could have solved this but all the threads i have found that were resolved for other users have not been succesful in this experience.
  • jjn
    Junior Member
    • May 2022
    • 5

    #2
    You have probably figured this out by now, but in case some future person stumbles upon this, while tracking down their identical issue...

    I'm not sure of all the places that the default value comes from but usually it's just a matter of creating an environment variable for your container named PHP_TZ and set to the appropriate timezone.

    Comment

    Working...