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

前端 未结 7 1783
旧时难觅i
旧时难觅i 2020-11-27 12:43

I have a Symfony2 project. I updated my php to 5.5.7 today and since then, I am getting the

Warning: date_default_timezone_get(): It is not safe to rely on          


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 13:22

    Since PHP 5.5, there is a separate php.ini file for CLI interface. If You use symfony console from command line, then this specific php.ini is used.

    In Ubuntu 13.10 check file:

    /etc/php5/cli/php.ini

提交回复
热议问题