PHP Warning 报“timezone”错_PHP教程
程序员文章站
2022-03-29 12:32:31
...
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"
下一篇: Html学习(3)- 图像标签
推荐阅读
-
Warning: mssql_connect() [function.mssql-connect]:_PHP教程
-
Warning: Invalid argument supplied for foreach()_PHP教程
-
PHP Warning: Module 'modulename' already loaded in问题解决办法,modulenameloaded_PHP教程
-
关于php程序报date()警告的处理(date_default_timezone_set)
-
PHP Warning: date(): It is not safe to rely on the system_PHP教程
-
PhpMyAdmin出现export.php Missing parameter: what /export_type错_PHP教程
-
Warning: mssql_query() [function.mssql-query]:_PHP教程
-
关于php程序报date()警告的处理(date_default_timezone_set)_PHP
-
关于php程序报date()警告的处理(date_default_timezone_set)
-
How do I change MySQL timezone?_PHP教程