Hi,
Since a few days, I am seeing that librenms is showing graphs in UTC time.
when I run the cli validate.php, output is normal:
I am running CentOS 7 (7.7.1908)
./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.56-25-g1f483c5
DB Schema | 2019_10_03_211702_serialize_config (144)
PHP | 7.2.22
MySQL | 5.5.64-MariaDB
RRDTool | 1.7.1
SNMP | NET-SNMP 5.7.2
====================================
[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
When, I use the validate page in librenms, I get the following:
Php Failure
Fail: You have a different system timezone (UTC) than the php configured timezone (EDT)
Fix: `Please correct either your system timezone or your timezone set in php.ini.`
I confirmed, that php.ini has the correct time zone and I also confirmed that my system time is correctly set.
$ timedatectl
Local time: Wed 2019-10-16 12:12:03 EDT
Universal time: Wed 2019-10-16 16:12:03 UTC
RTC time: Wed 2019-10-16 16:12:03
Time zone: America/Toronto (EDT, -0400)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2019-03-10 01:59:59 EST
Sun 2019-03-10 03:00:00 EDT
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2019-11-03 01:59:59 EDT
Sun 2019-11-03 01:00:00 EST
$ php -i|grep zone
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => America/Toronto
date.timezone => America/Toronto => America/Toronto
Any ideas what is going on and how I can fix this?