From: lkehresman Date: Fri, 7 Jan 2000 20:42:05 +0000 (+0000) Subject: fixed a minor bug in GMT correction X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=ddd32badcbcc6eb45eb8aac3890f5fb36a2b5ea5 fixed a minor bug in GMT correction git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@133 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/date.php b/functions/date.php index e1d9c388..d8031c9f 100644 --- a/functions/date.php +++ b/functions/date.php @@ -38,6 +38,15 @@ // corrects a time stamp to be the local time function getGMTSeconds($stamp, $gmt) { + if (($gmt == "Pacific") || ($gmt == "PST") || ($gmt == "PDT")) + $gmt = "-0800"; + if (($gmt == "Eastern") || ($gmt == "EST") || ($gmt == "EDT")) + $gmt = "-0500"; + if (($gmt == "Central") || ($gmt == "CST") || ($gmt == "CDT")) + $gmt = "-0600"; + if (($gmt == "Mountain") || ($gmt == "MST") || ($gmt == "MDT")) + $gmt = "-0700"; + if (substr($gmt, 0, 1) == "-") { $neg = true; $gmt = substr($gmt, 1, strlen($gmt));