Time Zone PHP Warning
Posted: Wed Sep 30, 2015 4:59 pm
I use a preconfigured Linux image that has the time zone set to "date.timezone = Etc/UTC" in /etc/php.ini before I do a full install of Nagios XI.
Everything is fine until I log in for the first time ("date.timezone = Etc/UTC" is still set after the full install). After that, the time zone is unset "date.timezone = " in /etc/php.ini and /var/log/httpd fills up with this error:
[Sun Sep 20 03:35:08 2015] [error] [client 192.168.1.55] PHP Warning: date(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 106
Any suggestions? I was going to tinker with install.php or utils-timezones.inc.php, but I thought I'd consult the forums first.
Thanks.
Everything is fine until I log in for the first time ("date.timezone = Etc/UTC" is still set after the full install). After that, the time zone is unset "date.timezone = " in /etc/php.ini and /var/log/httpd fills up with this error:
[Sun Sep 20 03:35:08 2015] [error] [client 192.168.1.55] PHP Warning: date(): 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 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 106
Any suggestions? I was going to tinker with install.php or utils-timezones.inc.php, but I thought I'd consult the forums first.
Thanks.