From 96f0cbe30d05ea41bb95fcc1487e2e2d5c55f966 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Apr 2013 10:48:00 +0400 Subject: clientTzOffset: use proper sign --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 4272c649d..1ab92475d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -872,7 +872,7 @@ $tz_offset = $user_tz->getOffset($dt); } else { - $tz_offset = (int) $_SESSION["clientTzOffset"]; + $tz_offset = (int) -$_SESSION["clientTzOffset"]; } $user_timestamp = $dt->format('U') + $tz_offset; -- cgit v1.2.3