summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-08-20 23:00:00 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-08-20 23:00:00 +0200
commitb4f8092730e530fe476ede3da8229481d4647d8a (patch)
treecd1fb5544fd9dae751e81adde65a45fb9c0f1331 /src
parent2e0c82ea05763b2932cf741734b8116de94ff3f1 (diff)
Database: Use configured time zone
Diffstat (limited to 'src')
-rw-r--r--src/Database/DatabaseServiceProvider.php2
1 files changed, 2 insertions, 0 deletions
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));