From 0379d2b4f73f8174978c06770824a75deec942df Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 10 Jun 2015 08:28:53 +1200 Subject: [PATCH] Allow custom time zone for application --- .env.example | 3 ++- config/app.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index dd26b20a09..b7d3adcd5f 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ APP_DEBUG=true APP_URL=http://ninja.dev APP_CIPHER=rijndael-128 APP_KEY +APP_TIMEZONE DB_TYPE=mysql DB_HOST=localhost @@ -17,4 +18,4 @@ MAIL_HOST MAIL_USERNAME MAIL_FROM_ADDRESS MAIL_FROM_NAME -MAIL_PASSWORD \ No newline at end of file +MAIL_PASSWORD diff --git a/config/app.php b/config/app.php index 48ffb7ef3a..e21f44ab0e 100644 --- a/config/app.php +++ b/config/app.php @@ -41,7 +41,7 @@ return [ | */ - 'timezone' => 'UTC', + 'timezone' => env('APP_TIMEZONE', 'UTC'), /* |--------------------------------------------------------------------------