[SOLVED] Cacti TZ System

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
bredis
Posts: 4
Joined: Tue Nov 05, 2019 12:13 am

[SOLVED] Cacti TZ System

Post by bredis »

Hi. After upgrading debian 11 to debian 12, the cacti package was updated. Now in the log it looks like this:

Code: Select all

03/Aug/2023 14:37:15 - SYSTEM MAINT STATS: Time:0.02
03/Aug/2023 14:37:13 - SYSTEM STATS: Time:11.3814 Method:spine Processes:1 Threads:3 Hosts:14 HostsPerProcess:14 DataSources:296 RRDsProcessed:175
03/Aug/2023 14:36:24 - SYSTEM MAINT STATS: Time:0.01
03/Aug/2023 14:36:23 - SYSTEM STATS: Time:21.4166 Method:spine Processes:1 Threads:3 Hosts:14 HostsPerProcess:14 DataSources:299 RRDsProcessed:179
03/Aug/2023 17:35:40 - AUTH LOGIN: User 'admin' Authenticated via Authentication Cookie
03/Aug/2023 14:35:15 - SYSTEM MAINT STATS: Time:0.02
03/Aug/2023 14:35:13 - SYSTEM STATS: Time:11.4038 Method:spine Processes:1 Threads:3 Hosts:14 HostsPerProcess:14 DataSources:296 RRDsProcessed:173
03/Aug/2023 14:34:15 - SYSTEM MAINT STATS: Time:0.02
03/Aug/2023 14:34:13 - SYSTEM STATS: Time:11.3737 Method:spine Processes:1 Threads:3 Hosts:14 HostsPerProcess:14 DataSources:289 RRDsProcessed:171
03/Aug/2023 14:33:14 - SYSTEM MAINT STATS: Time:0.01
03/Aug/2023 14:33:13 - SYSTEM STATS: Time:11.3895 Method:spine Processes:1 Threads:3 Hosts:14 HostsPerProcess:14 DataSources:292 RRDsProcessed:174
Tell me how to solve the problem with the time zone. Must be +3 from UTC.
The correct time is 17:35 when "admin" logged in.

SOLVED
added to "/etc/php/8.2/cli/php.ini"

Code: Select all

[Date]
; Defines the default timezone used by the date functions
; https://php.net/date.timezone
date.timezone = Europe/Moscow
User avatar
macan
Cacti Guru User
Posts: 1159
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: [SOLVED] Cacti TZ System

Post by macan »

restart web server service after php.ini changes.

after restart try test:
php -a
> echo date("h:i");
> echo date("P");

The second shows Difference to Greenwich time
If the time or offset is incorrect, it is php/webserver/os issue not cacti.
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest