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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user