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服务
评论