I am using Lumen framework. How can I change Timezone to Europe/Paris CEST?
I added a varaible in my .env
file:
APP_TIMEZONE=Europe/Pari
Just changing APP_TIMEZONE=Asia/Colombo in .env and run php artisan lumen-config:cache worked for me in lumen 5.7
By default time zone of laravel project is **UTC*
'timezone' => 'UTC',
now change according to your time zone for me it's Asia/Calcutta
so for me setting will be 'timezone' => 'Asia/Calcutta',
*for time zone list visit this url https://www.w3schools.com/php/php_ref_timezones.asp
You just have to edit de app.php file in config directory Just find next lines
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
And.. chage it for:
'timezone' => 'Europe/Paris',