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

前端 未结 10 2151
悲哀的现实
悲哀的现实 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条回答
  •  甜味超标
    2020-12-14 07:50

    I had the exact same problem with my SF2 installation.

    To fix this just go into your php.ini file at /etc/php.ini and change your file to look like this (adjust your timezone to suit your local timezone):

    ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;;
    
    [Date] 
    ; Defines the default timezone used by the date functions 
    ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone 
    date.timezone = Europe/London
    

提交回复
热议问题