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

前端 未结 7 1761
旧时难觅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:35

    The problem appear when we are using PHP 5.1 on Redhat or Cent OS

    PHP 5.1 on RHEL/CentOS doesn't support the timezone functions

提交回复
热议问题