doctrine:schema:update --force更新数据库出现错误,提示Warning: date_default_timezone_get(): It is not safe to rely on the system'

Warning: datedefaulttimezoneget(): It is not safe to rely on the system' s timezone settings. You are required to use the date.timezone setting or the datedefaulttimezoneset() function. In case you used any of those me thods and you are still getting this warning, you most likely misspelled th e timezone identifier. We selected the timezone 'UTC' for now, but please s et date.timezone to select your timezone. in /var/www/Symfony/vendor/monolo g/monolog/src/Monolog/Logger.php line 209

阅读 4.9k
1 个回答

不是说的很清楚了。配一下php.ini文件,defaulttimezone吧。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
logo
101 新手上路
子站问答
访问
宣传栏