Skip to content

Commit 682829d

Browse files
committed
✨ ajout de la locale pour les dates
1 parent cec1f36 commit 682829d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ public function register()
3838
*
3939
* @return void
4040
*/
41-
public function boot()
41+
public function boot(): void
4242
{
4343
date_default_timezone_set('Africa/Douala');
44-
setlocale(LC_TIME, 'fr_FR', 'fr', 'FR', 'French', 'fr_FR.UTF-8');
45-
Carbon::setLocale('fr_FR');
44+
setlocale(LC_TIME, 'French');
45+
setlocale(LC_ALL, 'fr_FR.UTF-8');
46+
Carbon::setLocale('fr');
4647

4748
$this->bootMacros();
4849
$this->bootViewsComposer();

0 commit comments

Comments
 (0)