瓜瓜笔记

导航

公告

统计

cakephp2 运行时时区出错

Warning (2): strtotime() [function.strtotime]: 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   


在php.ini中,设置date.timezone = PRC就可以解决了。

posted on 2012-05-04 17:09 瓜瓜 阅读(...) 评论(...)  编辑 收藏