summaryrefslogtreecommitdiff
path: root/app/frontend/facades
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/facades')
-rw-r--r--app/frontend/facades/UserFacade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/frontend/facades/UserFacade.php b/app/frontend/facades/UserFacade.php
index 0bc5863..6a7feac 100644
--- a/app/frontend/facades/UserFacade.php
+++ b/app/frontend/facades/UserFacade.php
@@ -68,7 +68,7 @@ class UserFacade extends Facade {
}
public function getTimezonePreference(DbUser $user) {
- if (!$user->IsGuest) {
+ if (!$user->IsGuest && $user->DbRecord->Timezone) {
try {
return new TimezoneDTO($user->DbRecord->Timezone);
} catch(Exception $e) {}