Skip to content

Commit

Permalink
fix(core): Fixed non-loaded timezone and app env
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Jul 23, 2018
1 parent ac5382d commit e504c3a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Bootstrap/LoadConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@ public function handle()
$this->app->config->set(
$this->configuration->getConfigurationBase()
);
$config = $this->app->config;

$this->app->detectEnvironment(function () use ($config) {
return $config->get('app.env', 'production');
});

date_default_timezone_set($config->get('app.timezone', 'UTC'));

$loaded = true;
}
}

0 comments on commit e504c3a

Please sign in to comment.