Skip to content

Commit

Permalink
Fixed an error when trying to install dependencies without a .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
zKoz210 authored Nov 24, 2020
1 parent 1473bf9 commit 99c14ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'collation' => 'utf8mb4_unicode_ci',
'prefix' => env('DB_PREFIX', ''),
'strict' => env('DB_STRICT_MODE', false),
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE')))
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE', 'UTC')))
],

/*
Expand All @@ -68,7 +68,7 @@
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE')))
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE', 'UTC')))
],
],

Expand Down

0 comments on commit 99c14ca

Please sign in to comment.