1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 04:09:39 +00:00

more php8 fixes mostly related to login

This commit is contained in:
Andrew Dolgov
2021-02-06 00:12:15 +03:00
parent 403dca154c
commit 6e774a58fe
9 changed files with 17 additions and 14 deletions

View File

@@ -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;