我在互联网上尝试了一些东西,但没有一种解决方案可以解决我的问题。
我正在学习 symfony 2 和使用数据库的学说。我想用这个命令生成我的新表:
php app/console doctrine:schema:update --dump-sql
但是我的控制台上有这个异常错误:
[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 'Europe/Berlin' for 'CEST/2.0/DST' instead
in /Applications/MAMP/htdocs/SdzBlog/Symfony/vendor/monolog/monolog/src/Monolog/
Logger.php line 209
关于我的配置:我的服务器使用 MAMP 我的操作系统是 MAC OS 10.8.5
我认为这是关于 php.ini 的,但我无法编辑这些文件。当我尝试编辑这些文件时,它告诉我这些文件是只读的。我什至尝试制作 chmod 以便能够编辑它们,但我仍然有只读消息。
请问有人知道如何解决这个问题吗?
谢谢
回答:阅读 Nicolai 的回答,以及他的所有评论,它会有所帮助