How to have local Linux TZ be UTC while Cacti uses local TZ

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
kevinbranch
Posts: 4
Joined: Mon Aug 26, 2013 8:50 pm

How to have local Linux TZ be UTC while Cacti uses local TZ

#1 Post by kevinbranch » Thu May 16, 2019 3:43 pm

Hi,

I have Cacti installed on a server that has (and must continue to have) the Linux TZ set to UTC, but I want Cacti to record and present data using "US/Eastern".
I have set date.timezone = "US/Eastern" in all php.ini files and I observe that the Cacti poller is writing to the RRD files using US/Eastern as desired with the collected data appearing in the RRD file consistent with US/Eastern.
The problem is that the graphs are being rendered with the assumption that the current time of day is UTC, so there is always a four-hour empty gap in the graphs on the right hand side. Also in Cacti when I select a time range for a graph it interprets my request as being in UTC, so for example if I say I want "last hour" it shows up all empty since the last 4 hours on the graph are always empty.
Is there a way to work around this without forcing my Linux TZ to "US/Eastern"?

Thanks
Kevin

Post Reply