[Linux] Wrong datetime in interface of Cacti and graph RRDtool

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

Moderators: Developers, Moderators

Post Reply
madratevo
Posts: 1
Joined: Sat Nov 20, 2021 5:31 am

[Linux] Wrong datetime in interface of Cacti and graph RRDtool

Post by madratevo »

Hi,
I'm new on this forum and this is my first post. Before submit this post I tried find solution in existed posts on this forum but don't find solution for this issue.

My machine:
Ubuntu 18.04 LTS
Cacti 1.2.19 (installed with this manual: https://www.itzgeek.com/how-tos/linux/u ... eaver.html)

I have problem with wrong datetime in interface of Cacti and graph RRDtool.
In select input forms for start and end date data to show on graph there is a -7h offset but graph show correct datetime on X axis label on graph but not in start-end between date.
How do is look like on below screen. X axis label on graph show correct hours from Fri 12:00 (from start date value Fri 11:33) to Sat 09:00 (to end date Sat 11:33). Wrong labels show in select date picker for start and end date in upper menu and below X axis label on graph where 4:33 is wrong hour!
Image
In Log datetime is correct.
Image

I have apply settings for timezone:
in
/etc/php/7.2/apache2/php.ini
/etc/php/7.2/cli/php.ini
is set
date.timezone = "Europe/Warsaw"

system timezone is set
~$ timedatectl
Local time: Sat 2021-11-20 11:42:25 CET
Universal time: Sat 2021-11-20 10:42:25 UTC
RTC time: Sat 2021-11-20 10:42:25
Time zone: Europe/Warsaw (CET, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no

How to fix this issue of showing wrong hour with -7h offset in select date pickers and graphs?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests