Control Web Panel

WebPanel => PHP => Topic started by: Administrator on March 28, 2014, 07:18:49 PM

Title: PHP ERROR: It is not safe to rely on the system's timezone settings
Post by: Administrator on March 28, 2014, 07:18:49 PM
If you get this error listed bellow:
Code: [Select]
date(): It is not safe to rely on the system's timezone settings
mktime(): It is not safe to rely on the system's timezone settings

You can edit your /etc/php.ini file and search:
Code: [Select]
date.timezone =
You can edit it eg. like this:
Code: [Select]
date.timezone ="US/Central"
After editing you can restart apache:
Code: [Select]
service httpd restart
Time Zone list:
https://php.net/manual/en/timezones.php