If you see an error message similar to "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" when using the phpinfo()
function in PHP, it means that the timezone setting in your PHP configuration is not set correctly.
To fix this error, you need to set the date.timezone
setting in your PHP configuration file, typically called php.ini
. You can do this by adding the following line to the php.ini
file:
date.timezone = "YOUR_TIMEZONE"Sowww:ecru.lautturi.com
Replace YOUR_TIMEZONE
with the timezone that you want to use. You can find a list of valid timezone values at the following URL:
http://php.net/manual/en/timezones.php
For example, to set the timezone to "Europe/Paris", you would use the following line:
date.timezone = "Europe/Paris"
After you have set the date.timezone
setting in your PHP configuration file, you need to restart the web server for the changes to take effect.
For more information about the date.timezone
setting and other PHP configuration options, you can consult the documentation for your specific PHP installation.