search

Home  >  Q&A  >  body text

symfony - doctrine:schema:update --force error occurred when updating the database, prompting 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

阿神阿神2831 days ago592

reply all(1)I'll reply

  • 滿天的星座

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

    I didn’t make it very clear. Configure the php.ini file, defaulttimezone.

    reply
    0
  • Cancelreply