永发信息网

php配置时区遇到这个,已经更改过php.ini但无效

答案:2  悬赏:10  手机版
解决时间 2021-03-21 05:32
  • 提问者网友:放下
  • 2021-03-20 09:24
php配置时区遇到这个,已经更改过php.ini但无效,Warning: phpinfo(): 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 C:\AppServ\www\phpinfo.php on line 2
最佳答案
  • 五星知识达人网友:迟山
  • 2021-03-20 10:34
确认下date.timezone =Asia/Shanghai,前面的 ; 是否已经去掉,以及后面值的拼写是否正确,是否重启apache
全部回答
  • 1楼网友:不甚了了
  • 2021-03-20 10:56
页面最顶部 date_default_timezone_set('PRC'); 再看看别人怎么说的。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯