登录

symfony - 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

# PHP
阿神 阿神 2508 天前 380 次浏览

全部回复(1) 我要回复

  • 滿天的星座

    滿天的星座2017-05-16 16:46:57

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

    回复
    0
  • 取消 回复 发送