date_default_timezone_get():

                                                                              
  [Symfony\Component\Debug\Exception\ContextErrorException]                    
  Warning: date_default_timezone_get(): It is not safe to rely on the system'  
  s timezone settings. You are *required* to use the date.timezone setting or  
   the date_default_timezone_set() function. In case you used any of those me  
  thods and you are still getting this warning, you most likely misspelled th  
  e timezone identifier. We selected the timezone 'UTC' for now, but please s  
  et date.timezone to select your timezone.                                    
                                               

修改php.ini文件,找到date = utc 就可以了

date.timezone = utc

posted @ 2017-05-16 17:12  ldp.im  阅读(190)  评论(0编辑  收藏  举报