Page 1 of 1

Timezone errors

Posted: Thu Jun 05, 2014 8:58 am
by ravish78
We are seeing below errors frequently in http log files.

[Thu Jun 05 09:03:31 2014] [error] [client 13.157.214.149] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 336, referer: http://nagioswv.corp.xerox.com/nagiosxi ... ost=carbon
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: scandir(/usr/local/nagiosxi/html/includes/lang/locale): failed to open dir: Permission denied in /usr/local/nagiosxi/html/includes/utils.inc.php on line 384, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: scandir(): (errno 13): Permission denied in /usr/local/nagiosxi/html/includes/utils.inc.php on line 384, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/utils.inc.php on line 388, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/
[Thu Jun 05 09:03:34 2014] [error] [client 13.157.214.149] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://nagioswv.corp.xerox.com/nagiosxi/account/


Can you helpus resolving it.

Re: Timezone errors

Posted: Thu Jun 05, 2014 9:29 am
by tmcdonald
You need to set the date.timezone value in /etc/php.ini to its appropriate value.