Skip to content

Commit d68d598

Browse files
authored
Merge pull request pterodactyl#2737 from zKoz210/patch-1
Fixed an error when trying to install dependencies without a .env file
2 parents b9e72c0 + 99c14ca commit d68d598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
'collation' => 'utf8mb4_unicode_ci',
4646
'prefix' => env('DB_PREFIX', ''),
4747
'strict' => env('DB_STRICT_MODE', false),
48-
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE')))
48+
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE', 'UTC')))
4949
],
5050

5151
/*
@@ -68,7 +68,7 @@
6868
'collation' => 'utf8mb4_unicode_ci',
6969
'prefix' => '',
7070
'strict' => false,
71-
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE')))
71+
'timezone' => env('DB_TIMEZONE', Time::getMySQLTimezoneOffset(env('APP_TIMEZONE', 'UTC')))
7272
],
7373
],
7474

0 commit comments

Comments
 (0)