laravel日期默认错误

laravel date default error


当我总是安装 laravel v5 并完成安装后,当我查看新安装时出现错误

Warning: date_default_timezone_set(): 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 methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\vendor\compiled.php on line 1808

Notice: date_default_timezone_set(): Timezone ID '' is invalid in D:\vendor\compiled.php on line 1808

Warning: Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandlers(): 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 methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in D:\vendor\compiled.php on line 1673

Fatal error: Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler() in D:\vendor\compiled.php on line 1673

但是 v4.2.0 的一切都很好而且它工作正常我想使用 v5 所以请告诉我。
提前致谢

我们可以在 config 文件 app/config/app.php 或下面部分的任何 app/config/environment/app.php 中设置时区。

 /*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
| 
*/

// Default value of timezone is 'UTC', I have changed it to 'Asia/Kolkata'

'timezone'  => 'Asia/Kolkata',