Page 1 of 1

Timezones

Posted: Wed Oct 29, 2014 7:37 am
by adam.sage
I have the time zone set to UTC -5 Eastern in Configure>System Configuration but all times still show as standard UTC times (graphs, etc). Is there any way to force the correct time?

Re: Timezones

Posted: Wed Oct 29, 2014 1:24 pm
by slansing
Lets verify that that is actually set properly, please run the following commands and share the output, thanks!:

Code: Select all

date

hwclock

cat /etc/php.ini | grep 'date.time'
Edit: Apologies, I reversed date and time in the above command, it has been corrected.

Re: Timezones

Posted: Thu Oct 30, 2014 10:20 am
by adam.sage
[root@nagios ~]# date
Thu Oct 30 15:19:24 UTC 2014
[root@nagios ~]# hwclock
Thu 30 Oct 2014 03:19:31 PM UTC -0.656628 seconds
[root@nagios ~]# cat /etc/php.ini | grep 'time.date'
[root@nagios ~]#

The last command did not have any output

Re: Timezones

Posted: Thu Oct 30, 2014 10:33 am
by snapon_admin
Try:

Code: Select all

cat /etc/php.ini | grep 'date.timezone'

Re: Timezones

Posted: Thu Oct 30, 2014 11:58 am
by slansing
Thanks Snap-on, I've also corrected the initial post. Let us know what it comes up with Adam, thanks!

Re: Timezones

Posted: Thu Oct 30, 2014 12:04 pm
by adam.sage
No problem

[root@nagios ~]# cat /etc/php.ini | grep 'date.timezone'
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = US/Eastern

Re: Timezones

Posted: Thu Oct 30, 2014 12:10 pm
by slansing
Looks like the times differ, please take a walk through of this document, and that should get this corrected:

http://assets.nagios.com/downloads/nagi ... m_Time.pdf

Also, check the system time of the workstation you are on, that can effect some browser display elements.

Re: Timezones

Posted: Tue Nov 11, 2014 2:57 pm
by adam.sage
Sorry for the delay. I followed the guide and the time for everything is correct now. Thanks!