瓜瓜笔记

导航

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  瓜瓜  阅读(144)  评论(0编辑  收藏  举报