Merge pull request #639 from MyIgel/database-tz

Database: Use configured time zone
main
msquare 5 years ago committed by GitHub
commit dc5580b09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save