made some changes to date parsing trying to fix bugs
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2000 01:01:22 +0000 (01:01 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2000 01:01:22 +0000 (01:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@751 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/date.php

index bdc0ad5..4001dda 100644 (file)
          $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));
          $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;