错误信息
Fatal error: Uncaught exception ‘think\exception\ErrorException’ with
message ‘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. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected the timezone ‘UTC’ for
now, but please set date.timezone to select your timezone.’ in …
解决办法
方案1:check_add.php头部:<?php date_default_timezone_set("PRC"); ?> 设置默认时区为北京时间。。解决当前页面。
方案2:在php.ini中设置date.timezone的值为PRC,设置好以后的为:date.timezone=PRC,同时取消这一行代码的注释,即去掉前面的分号就可以了。