might be a stupid question but please, how can I manage to show the times in graphs in UTC rather than local time ?
Cacti 1.2.17 @debian10
php 7.3
Everything on the cacti server is set to UTC:
Code: Select all
# grep timezone /etc/php/7.3/apache2/php.ini
date.timezone = UTC
Code: Select all
# timedatectl
Local time: Wed 2021-06-09 11:15:32 UTC
Universal time: Wed 2021-06-09 11:15:32 UTC
RTC time: Wed 2021-06-09 11:15:32
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
Code: Select all
MariaDB [(none)]> select now();
+---------------------+
| now() |
+---------------------+
| 2021-06-09 11:17:19 |
+---------------------+
1 row in set (0.000 sec)
Within Cactis "Technical support":
Code: Select all
Technical Support [Summary]
Date Wed, 09 Jun 2021 13:15:58 +0200
Code: Select all
date
date/time support enabled
timelib version 2018.04
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Etc/GMT-2
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone Etc/GMT-2 UTC
Tested UTC of course and immediately Cacti graphs showed the times we need.
So Cacti/Browser interprets clients timezone to show time according to it. We need to avoid that as we only report in UTC.
I was not able to figure out any setting to work around this issue. Any thoughts ?
Thanks
CH