消除php5.3出现的strtotime()警告

匿名 (未验证), 17 十一月, 2012
运行php5.3时当出现这样的警告: PHP message: PHP Warning: 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. 解决方法: 在php.ini里设定时区就解决了,例如: date.timezone = Asia/Hong_Kong 然后restart php-fpm服务

评论