Ecshop模板网
首页 > ecshop教程 > ecshop安装使用 > ecshop在linux下Warning: date_default_timezone_get
文章详情

ecshop在linux下Warning: date_default_timezone_get

ecshop模板网 / 2014-06-06

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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/install/includes/lib_installer.php on line 223

打开/usr/local/nginx/html/ecshop/install/includes/lib_installer.php在223行把date_default_timezone_get()改为"Asia/Shanghai"

即:$local_timezone="Asia/Shanghai";

 

安装过程中出现错误:

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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/includes/cls_mysql.php on line 163 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 sel ected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/nginx/html/ecshop/includes/cls_mysql.php on line 163 OK

修改php.ini,找到date.timezone,去掉分号改为date.timezone="Asia/Shanghai"

nginx下重启php服务,再次安装就成功。

下一篇: Ecshop商品属性无法正常使用价格排序的问题 上一篇: 如何修改Ecshop的配送方式续重的重量单位为500克
 用户评论(共 0 条评论)
  • 暂时还没有任何用户评论
用户名: 匿名用户 E-mail:
当前心情:
评论内容:
验证码: captcha
返回顶部 返回首页
 
QQ在线咨询
售前电话热线
#
售前QQ客服