tp5做验证码出现Fatal error: with message 'date(): It is not safe t

2020-06-29

157

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.

 

出现这个是因为php.ini没有设置好时区

打开php.ini搜索date.timezone

把;date.timezone = 前面的;号去掉  加上PRC

 

修改后date.timezone = PRC

 

问题就可以解决了,亲测有效。

DLweb`build
度良网络科技有限公司为您建设最时尚前沿的网站以及高端网站设计

沪ICP备16017573号

Copyright©2018 度良 All Rights Reserved.

友情链接:

义乌网站建设