1
0
mirror of https://github.com/humhub/humhub.git synced 2025-03-22 16:10:13 +01:00

Ensure formatter timeZone is null when default is used

This commit is contained in:
Lucas Bartholemy 2016-10-27 19:07:02 +02:00
parent f739c4a30d
commit 6226bf6669

@ -67,8 +67,9 @@ class LanguageSelector implements BootstrapInterface
if ($app->user->language) {
$app->language = $app->user->language;
}
$app->formatter->timeZone = $app->user->timeZone;
if ($app->user->timeZone) {
$app->formatter->timeZone = $app->user->timeZone;
}
$app->formatter->defaultTimeZone = $app->timeZone;
}