Switch back to jenseggers/date

This commit is contained in:
James Brooks
2017-03-09 19:42:35 +00:00
parent ecb05d588f
commit f223e264c1
10 changed files with 26 additions and 22 deletions
@@ -14,9 +14,9 @@ namespace CachetHQ\Cachet\Foundation\Providers;
use CachetHQ\Cachet\Models\Setting as SettingModel;
use CachetHQ\Cachet\Settings\Cache;
use CachetHQ\Cachet\Settings\Repository;
use Carbon\Carbon;
use Exception;
use Illuminate\Support\ServiceProvider;
use Jenssegers\Date\Date;
/**
* This is the config service provider class.
@@ -67,7 +67,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);
Carbon::setLocale($appLocale);
Date::setLocale($appLocale);
}
// Set the timezone.