为什么在php.ini中设置了date.timezone = PRC 后时区仍然出错
16lz
2021-01-22
根据网上的说明,将php.ini的date.timezone值设为PRC,但在页面中调用date()函数仍会提示我需要设置时区
Itisnotsafetorelyonthesystem'stimezonesettings.Youare*required*tousethedate.timezonesettingorthedate_default_timezone_set()function.Incaseyouusedanyofthosemethodsandyouarestillgettingthiswarning,youmostlikelymisspelledthetimezoneidentifier.
php.ini中的设置应该没有问题,拼写什么的也都正确
配置后重启apache了没??
Itisnotsafetorelyonthesystem'stimezonesettings.Youare*required*tousethedate.timezonesettingorthedate_default_timezone_set()function.Incaseyouusedanyofthosemethodsandyouarestillgettingthiswarning,youmostlikelymisspelledthetimezoneidentifier.
php.ini中的设置应该没有问题,拼写什么的也都正确
14 个解决方案
#1
配置后重启apache了没??
更多相关文章
- [轉]PHP官方网站,php官方论坛,中文函数手册下载
- php image函数,操作压缩图片时,png图片压缩后整个图片变黑
- PHP中钩子函数的实现与认识
- 如何通过.click jQuery函数检索html元素值与从MySQL检索的数据?
- 几个有用的php字符串过滤,转换函数代码
- PHP空间函数类似于ASP空间()
- PHP中类和对象的相关函数
- php函数 什么时候使用fflush函数
- 如何调试UPDATE函数在PHP中无法正常工作的原因?