Database: Use configured time zone

This commit is contained in:
Igor Scheller 2019-08-20 23:00:00 +02:00
parent 2e0c82ea05
commit b4f8092730
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
namespace Engelsystem\Database; namespace Engelsystem\Database;
use Carbon\Carbon;
use Engelsystem\Container\ServiceProvider; use Engelsystem\Container\ServiceProvider;
use Exception; use Exception;
use Illuminate\Database\Capsule\Manager as CapsuleManager; use Illuminate\Database\Capsule\Manager as CapsuleManager;
@ -24,6 +25,7 @@ class DatabaseServiceProvider extends ServiceProvider
'password' => '', 'password' => '',
'charset' => 'utf8', 'charset' => 'utf8',
'collation' => 'utf8_unicode_ci', 'collation' => 'utf8_unicode_ci',
'timezone' => Carbon::now()->format('P'),
'prefix' => '', 'prefix' => '',
], $dbConfig)); ], $dbConfig));