Localisation des formats de date

This commit is contained in:
Olivier Legat 2021-06-08 17:04:32 +02:00
parent 371de51900
commit 52bcbe582d

View file

@ -26,5 +26,13 @@ class AppServiceProvider extends ServiceProvider
if($this->app->environment("prod")){
\URL::forceScheme("https");
}
if (config('app.env') !== 'local') {
setlocale(LC_TIME, config('app.locale') . "_" . strtoupper(config('app.locale')) . '.utf8');
}
if (config('app.env') === 'local') {
setlocale(LC_TIME, strtoupper(config('app.locale')) . "_" . config('app.locale') . '.utf8');
}
}
}