Warning: 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……
问题原因:timezone时区没有正确设置的原因
解决办法:
1.打开php.ini,搜索date.timezone,搜索结果为;date.timezone =
2.将分号去掉,=号后面加上PRC,例:date.timezone = PRC
3.重启apache就可以了
解决PHP中date( )报错问题
最新推荐文章于 2024-03-23 04:14:13 发布