软件安装不上,最后一步

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

创建配置文件............成功
创建数据库............成功
安装数据............失败


Warning: date_default_timezone_get() [function.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:\wwwroot\ecshop\includes\cls_mysql.php on line 163

Warning: date() [function.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:\wwwroot\ecshop\includes\cls_mysql.php on line 165

Warning: date_default_timezone_get() [function.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:\wwwroot\ecshop\includes\cls_mysql.php on line 173
OK,
怎么弄呀
loveyou

回答:
在install/includes/init.php文件里加入一句
date_default_timezone_set ('Asia/Shanghai');
试试行不行。

例如加在这个位置
  1. <?php
  2. date_default_timezone_set ('Asia/Shanghai');
  3. /* 报告所有错误 */
  4. @ini_set('display_errors', 1);
  5. error_reporting(E_ALL ^ E_NOTICE);
复制代码