From 98df07269f4fb0e6df14b6380a908a146f32bf85 Mon Sep 17 00:00:00 2001 From: Jovan Jovanovic Date: Wed, 28 Jul 2021 18:29:06 +0200 Subject: [PATCH] Add APP_TIMEZONE env variable --- .env.example | 1 + config/app.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 94676473..2c3c21aa 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ APP_ENV=production APP_KEY= APP_DEBUG=false APP_URL=http://localhost +APP_TIMEZONE=UTC DB_CONNECTION=mysql DB_HOST=127.0.0.1 diff --git a/config/app.php b/config/app.php index d54c7e1d..11d8d417 100644 --- a/config/app.php +++ b/config/app.php @@ -67,7 +67,7 @@ return [ | */ - 'timezone' => 'UTC', + 'timezone' => env('APP_TIMEZONE', 'UTC'), /* |--------------------------------------------------------------------------