mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 14:41:29 +00:00
clientTzOffset: use proper sign
This commit is contained in:
@@ -872,7 +872,7 @@
|
|||||||
|
|
||||||
$tz_offset = $user_tz->getOffset($dt);
|
$tz_offset = $user_tz->getOffset($dt);
|
||||||
} else {
|
} else {
|
||||||
$tz_offset = (int) $_SESSION["clientTzOffset"];
|
$tz_offset = (int) -$_SESSION["clientTzOffset"];
|
||||||
}
|
}
|
||||||
|
|
||||||
$user_timestamp = $dt->format('U') + $tz_offset;
|
$user_timestamp = $dt->format('U') + $tz_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user