Explorar o código

Add APP_TIMEZONE env variable

Jovan Jovanovic %!s(int64=4) %!d(string=hai) anos
pai
achega
98df07269f
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      .env.example
  2. 1 1
      config/app.php

+ 1 - 0
.env.example

@@ -3,6 +3,7 @@ APP_ENV=production
 APP_KEY=
 APP_DEBUG=false
 APP_URL=http://localhost
+APP_TIMEZONE=UTC
 
 DB_CONNECTION=mysql
 DB_HOST=127.0.0.1

+ 1 - 1
config/app.php

@@ -67,7 +67,7 @@ return [
     |
     */
 
-    'timezone' => 'UTC',
+    'timezone' => env('APP_TIMEZONE', 'UTC'),
 
     /*
     |--------------------------------------------------------------------------