I changed the /etc/php.ini file
; http://www.php.net/manual/en/datetime.c ... e.timezone
; date.timezone = Pacific/PST
date.timezone = America/Los_Angeles
however I am still getting these in my /var/log/httpd/error_log every minute or so.. How can I adjust this so it is proper? Thanks!
Jeff
[Fri Sep 23 15:56:47 2011] [error] [client 159.119.105.96] 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/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc.php on line 70, referer: http://nadc-nag-p01/nagiosxi/
date.timezone error in error_log
Re: date.timezone error in error_log
Did you restart the apache after you edited your php.ini file? If you forgot to do so, run:
You can also try to "bring your system time up to date" by:
You can also add this to your crontab:
For example, if you want to run it every day at 9:30, you can add this line to your crontab:
Code: Select all
# service httpd stop
# service httpd startCode: Select all
# yum install ntp
# ntpdate pool.ntp.orgCode: Select all
# crontab -eCode: Select all
# 30 9 * * * /usr/sbin/ntpdate pool.ntp.orgBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: date.timezone error in error_log
Thanks.. yes I forgot to restart httpd... that fixed it..
Re: date.timezone error in error_log
Great!
Be sure to check out our Knowledgebase for helpful articles and solutions!