From b4f8092730e530fe476ede3da8229481d4647d8a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 20 Aug 2019 23:00:00 +0200 Subject: [PATCH] Database: Use configured time zone --- src/Database/DatabaseServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Database/DatabaseServiceProvider.php b/src/Database/DatabaseServiceProvider.php index b3c33588..d0068b54 100644 --- a/src/Database/DatabaseServiceProvider.php +++ b/src/Database/DatabaseServiceProvider.php @@ -2,6 +2,7 @@ namespace Engelsystem\Database; +use Carbon\Carbon; use Engelsystem\Container\ServiceProvider; use Exception; use Illuminate\Database\Capsule\Manager as CapsuleManager; @@ -24,6 +25,7 @@ class DatabaseServiceProvider extends ServiceProvider 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', + 'timezone' => Carbon::now()->format('P'), 'prefix' => '', ], $dbConfig));