php

位置:IT落伍者 >> php >> 浏览文章

PHP Warning 报“timezone”错


发布日期:2020年09月23日
 
PHP Warning 报“timezone”错

PHP Warning: date(): It is not safe to rely on the systems timezone settings You are *required* to use the datetimezone 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 Asia/Chongqing for CST//no DST instead in /var/www/html/include/global_constantsphp on line

解决办法在phpini里加上


datetimezone = "Asia/Chongqing"

上一篇:php网站提示“您不具备查...资源进行了配置”的解决方法

下一篇:解析PHP中的unset究竟会不会释放内存