在某些参考资料中是说这两个方法任选其一就可,但经我测试,必须两个方法同时使用,才不会再出现错误提示 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 an…
warning: strtotime(): It is not safe to rely on the system's timezone settings warning: strtotime(): It is not safe to rely on the system's timezone settings出现这个错误的原因,主要是因为php.ini里面的时区没有进行设置,可以设置一下,例如:vi /etc/php.ini然后找到timezone将时区设为,例如:Asia/Shanghai…