Override date locale again. Fixes #1727
This commit is contained in:
committed by
James Brooks
parent
5b74b2d625
commit
c41adc1019
@@ -16,6 +16,7 @@ use CachetHQ\Cachet\Settings\Cache;
|
||||
use CachetHQ\Cachet\Settings\Repository;
|
||||
use Exception;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Jenssegers\Date\Date;
|
||||
|
||||
/**
|
||||
* This is the config service provider class.
|
||||
@@ -64,6 +65,7 @@ class ConfigServiceProvider extends ServiceProvider
|
||||
if ($appLocale = $this->app->config->get('setting.app_locale')) {
|
||||
$this->app->config->set('app.locale', $appLocale);
|
||||
$this->app->translator->setLocale($appLocale);
|
||||
Date::setLocale($appLocale);
|
||||
}
|
||||
|
||||
if ($appTimezone = $this->app->config->get('setting.app_timezone')) {
|
||||
|
||||
Reference in New Issue
Block a user