]> git.wh0rd.org - tt-rss.git/commitdiff
clientTzOffset: use proper sign
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Apr 2013 06:48:00 +0000 (10:48 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Apr 2013 06:48:00 +0000 (10:48 +0400)
include/functions.php

index 4272c649d8a131f4a2b15d39e41febc870f653a9..1ab92475db9111e91e2e35bcb3a2a02e9e5ef1fa 100644 (file)
 
                        $tz_offset = $user_tz->getOffset($dt);
                } else {
-                       $tz_offset = (int) $_SESSION["clientTzOffset"];
+                       $tz_offset = (int) -$_SESSION["clientTzOffset"];
                }
 
                $user_timestamp = $dt->format('U') + $tz_offset;