From a63c2f9fd8d6d73394edcffbcdc75a5e5aa18da1 Mon Sep 17 00:00:00 2001 From: rabol Date: Sat, 28 Dec 2019 10:38:54 +0100 Subject: [PATCH] Make it possible to specify timezone in .env --- .env.example | 2 +- config/app.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index bb471ec98..f8f0aa0bb 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,7 @@ APP_VERSION=0.1.8 APP_KEY= APP_DEBUG=true APP_URL=http://localhost - +APP_TIMEZONE='Asia/Kolkata' LOG_CHANNEL=stack DB_CONNECTION=mysql diff --git a/config/app.php b/config/app.php index 8e675f952..c8dcb8247 100755 --- a/config/app.php +++ b/config/app.php @@ -65,7 +65,7 @@ return [ | */ - 'timezone' => 'Asia/Kolkata', + 'timezone' => env('APP_TIMEZONE','Asia/Kolkata'), /* |--------------------------------------------------------------------------