From 47654bfb53dbd848a1d1bfdfe8e55ddf67bafe54 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 22 Sep 2000 01:01:22 +0000 Subject: [PATCH] made some changes to date parsing trying to fix bugs git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@751 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/date.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/date.php b/functions/date.php index bdc0ad58..4001dda0 100644 --- a/functions/date.php +++ b/functions/date.php @@ -66,7 +66,11 @@ $gmt = "+0100"; else if ($gmt == "MET DST" || $gmt == "METDST") $gmt = "+0200"; + + if ($gmt = "") + $gmt = "+0000"; + /* if (substr($gmt, 0, 1) == "-") { $neg = true; $gmt = substr($gmt, 1, strlen($gmt)); @@ -82,10 +86,10 @@ $gmt = "-$gmt"; else $gmt = "+$gmt"; + */ /** now find what the server is at **/ $current = date("Z", time()); - $stamp = (int)$stamp - (int)$gmt + (int)$current; return $stamp; -- 2.25.1