PHP Warning: phpinfo(): It is not safe to rely on the system’s timezone settings.

Having set the PHP Engine running on Domino Server; Any/All request to access to some PHP files filling up my log.nsf of this type of entries and warning:

PHP Warning:  phpinfo(): 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 the timezone 'UTC' for now, 
but please set date.timezone to select your timezone. 
in E:\IBM\Lotus\Domino\data\domino\html\info.php on line 4

One more thing is needed to be set into the php.ini file:

Set this line:

date.timezone = "UTC"

Or and based on your location; including the list of Supported Timezones

http://pl.php.net/manual/en/timezones.php

Leave a Reply

Your email address will not be published. Required fields are marked *