Graph time showing different compared to local time
Posted: Mon Mar 08, 2021 4:10 am
Hi Team,
We have noticed the time shown by the graph, last check everything different from the local server time. Attached some screenshots for your reference.
Timezone set as America/Los_Angeles. But time in the graph and last check shows Asia/Dubai.
Are there any settings that need to change to reflect the timezone?
[root@qy-nagios-a ~]# timedatectl
Local time: Mon 2021-03-08 00:54:33 PST
Universal time: Mon 2021-03-08 08:54:33 UTC
RTC time: Mon 2021-03-08 08:54:33
Time zone: America/Los_Angeles (PST, -0800)
NTP enabled: no
NTP synchronized: yes
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2020-11-01 01:59:59 PDT
Sun 2020-11-01 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2021-03-14 01:59:59 PST
Sun 2021-03-14 03:00:00 PDT
[root@qy-nagios-a ~]#
[root@qy-nagios-a ~]# date
Mon Mar 8 00:55:47 PST 2021
[root@qy-nagios-a ~]# cat /etc/php.ini | grep -i timezone
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Los_Angeles
[root@qy-nagios-a ~]#
Thanks
We have noticed the time shown by the graph, last check everything different from the local server time. Attached some screenshots for your reference.
Timezone set as America/Los_Angeles. But time in the graph and last check shows Asia/Dubai.
Are there any settings that need to change to reflect the timezone?
[root@qy-nagios-a ~]# timedatectl
Local time: Mon 2021-03-08 00:54:33 PST
Universal time: Mon 2021-03-08 08:54:33 UTC
RTC time: Mon 2021-03-08 08:54:33
Time zone: America/Los_Angeles (PST, -0800)
NTP enabled: no
NTP synchronized: yes
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2020-11-01 01:59:59 PDT
Sun 2020-11-01 01:00:00 PST
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2021-03-14 01:59:59 PST
Sun 2021-03-14 03:00:00 PDT
[root@qy-nagios-a ~]#
[root@qy-nagios-a ~]# date
Mon Mar 8 00:55:47 PST 2021
[root@qy-nagios-a ~]# cat /etc/php.ini | grep -i timezone
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Los_Angeles
[root@qy-nagios-a ~]#
Thanks