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 新手上路
子站问答
访问
宣传栏