Settable timezones with cachet config

This commit is contained in:
Joseph Cohen
2015-10-08 16:11:30 -05:00
parent ce8e710173
commit a288f84fc5
8 changed files with 32 additions and 7 deletions

View File

@@ -28,8 +28,7 @@ class Timezone
public function handle($request, Closure $next)
{
if ($tz = $request->header('Time-Zone')) {
app('config')->set('app.timezone', $tz);
Setting::set('app_timezone', $tz);
app('config')->set('cachet.timezone', $tz);
}
return $next($request);