summaryrefslogtreecommitdiff
path: root/classes/timehelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/timehelper.php')
-rw-r--r--classes/timehelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/timehelper.php b/classes/timehelper.php
index ce9e35f3e..e9bd36cad 100644
--- a/classes/timehelper.php
+++ b/classes/timehelper.php
@@ -49,7 +49,7 @@ class TimeHelper {
$tz_offset = $user_tz->getOffset($dt);
} else {
- $tz_offset = (int) -$_SESSION["clientTzOffset"];
+ $tz_offset = (int) -($_SESSION["clientTzOffset"] ?? 0);
}
$user_timestamp = $dt->format('U') + $tz_offset;