win2008 iis7+php+mysql+ecshop2.7.1 安装出现的问题

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



ecshop 版本是 2.7.1
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 D:\PHPRoot\cnbook365.com\wwwroot\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 D:\PHPRoot\cnbook365.com\wwwroot\includes\cls_mysql.php on line 163 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 '8.0/no DST' instead in D:\PHPRoot\cnbook365.com\wwwroot\includes\cls_mysql.php on line 165 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 D:\PHPRoot\cnbook365.com\wwwroot\includes\cls_mysql.php on line 173 OK

解决:是数据库设置 gbk 然后php设置 亚洲/shanghai 就搞定了。谢谢各位;)
http://bbs.ecshop.com/thread-95341-1-1.html
47
可以看下

回答:
You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

设置时区 可以改配置文件 改成china shanghai什么的

$timezone = "Asia/Hong_Kong";

http://bbs.ecshop.com/thread-95341-1-1.html
47
可以看下

哦哦,收到