Jelajahi Sumber

Add APP_TIMEZONE env variable

Jovan Jovanovic 3 tahun lalu
induk
melakukan
98df07269f
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  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_KEY=
 APP_DEBUG=false
 APP_DEBUG=false
 APP_URL=http://localhost
 APP_URL=http://localhost
+APP_TIMEZONE=UTC
 
 
 DB_CONNECTION=mysql
 DB_CONNECTION=mysql
 DB_HOST=127.0.0.1
 DB_HOST=127.0.0.1

+ 1 - 1
config/app.php

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