Ora*_*ind 1 php datetime kohana silverstripe
我想在安装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
Run Code Online (Sandbox Code Playgroud)
提前致谢!
这不是错误,而是警告,因此它不会阻止您的应用运行.
在第136行的C:\ Server\apache\htdocs\kohana\system\core\Kohana.php中使用date_default_timezone_set()显式设置正确的时区
您必须在有效的时区中进行选择
正如警告消息本身所示,您实际上有一个更干净的选择,然后编辑第三方软件文件.即配置PHP应该是.
php.ini并调整其值date.timezone = America/New_York要么
php_value在Web服务器配置中使用指令在vhost配置中设置它或.htaccess:php_value date.timezone America/New_York| 归档时间: |
|
| 查看次数: |
5457 次 |
| 最近记录: |