安装时出现Warning: date_default_timezone_get():

2016-07-07 15:23 来源:www.chinab4c.com 作者:ecshop专家

Warning: date_default_timezone_get(): 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 '8.0/no DST' instead in F:\ECSHOP\upload\install\includes\lib_installer.php on line 223 Warning: date_default_timezone_get(): 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 '8.0/no DST' instead in F:\ECSHOP\upload\install\includes\lib_installer.php on line 223

回答:
检测系统环境的时候,有没有出现不通过的问题呢?

我也出现了这样的情况。检测的项目全部可写。

怎么没有人回答呢?我也遇到了同样的问题,我是安装在php5.3.3上面的,各项检查都通过,页面上出现了警告,在执行完第三部后,数据库里面的表都已经创建了!

解决了:
找到php安装目录,修改php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =Asia/Shanghai

也可以用
http://bbs.ecshop.com/thread-95341-1-1.html
47
的方法

搞定了,多谢楼主