PHP Warning 报“timezone”错
程序员文章站
2024-01-07 20:40:28
...
PHP 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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /var/www/html/include/global_constants.php on line 160
解决办法,在php.ini里加上
date.timezone = "Asia/Chongqing"
推荐阅读
-
PHP Warning 报“timezone”错
-
apache2.4 - apache下运行php报这样的错是什么意思
-
关于php程序报date()警告的处理(date_default_timezone_set)
-
关于php程序报date()警告的处理(date_default_timezone_set)_PHP
-
关于php程序报date()警告的处理(date_default_timezone_set)
-
php 运作pear时 报php_mbstring的错的解决
-
php Warning: phpinfo(): It is not safe to rely on the systems timezone settings.解决方法
-
PHP Warning 报“timezone”错
-
php如何设置时间,php.ini如何设置时间,PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
-
phpmyamdin安装出现Warning: require(./libraries/Error_Handler.class.php) 错