虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > Ecshop > PHP 5.3.3 下 ECSHOP 安装错误解决方法

PHP 5.3.3 下 ECSHOP 安装错误解决方法
类别:Ecshop   作者:码皇   来源:互联网   点击:

php 5 3 3 下 ecshop 安装错误在安装 ECSHOP 的时候,提示安装失败,提示信息如下:Warning: date_default_timezone_get() : It is not safe to rely on thesystem s timezone settings You are *required* ,魔客吧

php 5.3.3 下 ecshop 安装错误


在安装 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

installincludeslib_installer.php
检查 PHP 手册,有注明:
Note:

Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate

a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ

environment variable.
造成 WARNING 原来是系统配置里没有设定默认时区,ECSHOP 调用 date_default_time_get (date/time 函数) 时则会产生错

误。在 php.ini 里设定一下:
date.timezone = Asia/Shanghai
或在代码里加入 date_default_timezone_set ('Asia/Shanghai'); 即可解决

相关热词搜索: PHP 5 3 3 下 ECSHOP 安装错误解决方法