首 页  >>  E商学院  >>  zencart百科  >>  zencart PHP5.3报错Warning: date():

zencart PHP5.3报错Warning: date():

zencart 1.39 或者1.38 在PHP5.3的环境下报错如下(解决方案)

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 'Asia/Chongqing' for 'CST/8.0/no DST'

If the above does not work, then you can try indicating the time zone directly.  For example, if your timezone was American/Chicago, then you would change @date_default_timezone_set(date_default_timezone_get()); to @date_default_timezone_set('American/Chicago');

 




点击次数:365  发布日期:2015-06-18  【打印此页】  【关闭