Database: Use configured time zone
This commit is contained in:
parent
2e0c82ea05
commit
b4f8092730
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue