clientTzOffset: use proper sign
This commit is contained in:
parent
6bfc97da86
commit
96f0cbe30d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue