关于ecshop在linux下Warning: date_default_timezone_get
2016-09-11 20:38 来源:www.chinab4c.com 作者:ecshop专家
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最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop二次开发商品购买增
图片1香...
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...