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

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


At AppKernel.php write:

public function init() {    date_default_timezone_set( 'Europe/Lisbon' );    parent::init();}

Since init() is deprecated (and will be remove in Symfony2 3.0) it is recommended to move the code in the constructor as in the following exemple:

public function __construct($environment, $debug) {    parent::__construct($environment, $debug);    // get rid of Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone    date_default_timezone_set( 'Europe/Paris' );}


Default php.ini in OS X is located at:

/private/etc/php.ini

Anyway, you'll can either tell CLI php to load MAMP settings, or use an alias of MAMP command itself.


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 => /etcLoaded Configuration File => /etc/php.ini