[php] date(): It is not safe to rely on the system's timezone settings.

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.

 

出现这个问题,主要是因为没有在 php.ini 里面对时区进行设置造成的,解决方法是,修改 php.ini,加入:

date.timezone = "Asia/Chongqing"

 

重启 apache,搞掂! 

 

posted @ 2012-11-12 13:48  DavidHHuan  阅读(306)  评论(0编辑  收藏  举报