date_default_timezone_get(): It is not safe to rely on the system's timezone settings

前端 未结 10 2137
悲哀的现实
悲哀的现实 2020-12-14 07:46

Can anyone tell me why am I getting this error when running app/console in a brand new formatted macbook with the latest MAMP installed ?

Warning: da

10条回答
  •  萌比男神i
    2020-12-14 07:53

    You don't edit the good php.ini file

    You can get a full phpinfo() using :

    php -i 
    

    And, in there, there is the php.ini file used :

    $ php -i | grep 'Configuration File'
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    

提交回复
热议问题