佚名 向大家介绍了default timezone,timezone.getdefault,date.timezone,php date.timezone,date.timezone prc等相关知识,希望对您有所帮助
Warning: date_default_timezone_get(): 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 'UTC' for '8.0/no DST' instead in D:\wwwroot\shop\upload\install\includes\lib_installer.php on line 223
很明显是由于PHP默认的时间区域设置问题导致的警告,本来也没什么,不过这个警告最后还是给我带来了麻烦,主要是数据库那段过不去,不得已,只有自己动手修改了,这里有两种办法供大家参考:
1. 修改\install\includes\lib_installer.php文件。在这个文件顶部<?php之内加上如下PHP代码:
好的,这个问题也就这样很好的解决了。 </div>
很明显是由于PHP默认的时间区域设置问题导致的警告,本来也没什么,不过这个警告最后还是给我带来了麻烦,主要是数据库那段过不去,不得已,只有自己动手修改了,这里有两种办法供大家参考:
1. 修改\install\includes\lib_installer.php文件。在这个文件顶部<?php之内加上如下PHP代码:
好的,这个问题也就这样很好的解决了。 </div>