我在尝试安装 Kohana/SilverStripe 时收到以下错误/警告。
这意味着什么?我该怎么做?
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 'Asia/Calcutta' for '5.5/no DST' instead in C:\Server\apache\htdocs\kohana\system\core\Kohana.php on line 136
提前致谢!
这不是错误,而是警告,因此它不会阻止您的应用程序运行。
使用 C:\Server\apache\htdocs\kohana\system\core\Kohana.php 第 136 行中的 date_default_timezone_set() 显式设置正确的时区
你必须选择其中有效时区
Edit
正如警告消息本身指出的那样,您实际上有一个比编辑第三方软件文件更干净的选择。 IE。按照应有的方式配置 PHP。
- 编辑你的
php.ini
并调整值date.timezone = America/New_York
or
- use a
php_value
您的网络服务器配置中的指令将其设置在您的虚拟主机配置 or .htaccess
: php_value date.timezone America/New_York
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)