【发布时间】:2014-06-16 20:35:24
【问题描述】:
我正在尝试在 XAMPP 上安装 Symfony,但我不断收到许多错误。
[Symfony\Component\Debug\Exception\ContextErrorException]
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 the timezone 'UTC' for now, but please set
date.timezone to select your timezone. in
/Applications/XAMPP/xamppfiles/htdocs/vendor/monolog/monolog/src/Monolog/Logger.php line 233
然后
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-
install-cmd event terminated with an exception
最后
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
我尝试在我的 php.ini 文件中更改 date.timezone 并在尝试安装之前在命令行中使用 date_default_timezone_set() 函数,但似乎没有任何效果。
我已经盯着它看了一段时间,所以任何帮助表示感谢
【问题讨论】:
-
第一个解释确切你需要做什么
-
这是Github bug Help吗?
-
@dabecks:再仔细阅读一遍,然后再试一次,因为它确实有效。
-
@dagon 我也尝试过进入该文件并在第 233 行设置默认时区,但这也不起作用
-
@dabecks:它确实适用于除您之外的所有人。想法?