laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

Undocumented APP_TIMEZONE env option #652

Closed martinsik closed 6 years ago

martinsik commented 7 years ago

Description:

Maybe I'm just blind but I didn't find any documentation regarding APP_TIMEZONE variable in .env. I just noticed its behavior has changed recently between 5.4.6 and 5.4.7 and now it shouldn't override the default timezone.

https://github.com/laravel/lumen-framework/blob/v5.4.6/src/Application.php#L83

https://github.com/laravel/lumen-framework/blob/v5.4.7/src/Application.php#L83

hakuno commented 6 years ago

That's okay, @martinsik

Because it must not override with UTC value when no dotenv's is found.

The app environment has other directives from PHP.INI and configure/config functions that should be respected too.

Any variable in your .env file can be overridden by external environment variables such as server-level or system-level environment variables.

Source at here.