From 5c2790cabc3eac18bcd20487b82f8c7a936991f8 Mon Sep 17 00:00:00 2001 From: ullgren Date: Mon, 10 Jun 2002 20:06:20 +0000 Subject: [PATCH] Timezone fix for non-whole hour timezone problem. by Darryl Ross (modified by Pontus Ullgren) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2940 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/date.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/date.php b/functions/date.php index 558b4778..a65308d6 100644 --- a/functions/date.php +++ b/functions/date.php @@ -58,9 +58,10 @@ function getGMTSeconds($stamp, $gmt) { } else { $neg = false; } - + + $difference = substr($gmt, 2, 2); $gmt = substr($gmt, 0, 2); - $gmt = $gmt * 3600; + $gmt = ($gmt + ($difference / 60)) * 3600; if ($neg == true) { $gmt = "-$gmt"; } else { -- 2.25.1