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 bdc0ad586b64529bfdb5e9ebccf36b6a6fb4b355..4001dda0df280c64077d509649e296b84a7953f2 100644 (file)
          $gmt = "+0100";
       else if ($gmt == "MET DST" || $gmt == "METDST")
          $gmt = "+0200";
          $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));
       if (substr($gmt, 0, 1) == "-") {
          $neg = true;
          $gmt = substr($gmt, 1, strlen($gmt));
          $gmt = "-$gmt";
       else
          $gmt = "+$gmt";
          $gmt = "-$gmt";
       else
          $gmt = "+$gmt";
+      */
 
       /** now find what the server is at **/
       $current = date("Z", time());
 
       /** now find what the server is at **/
       $current = date("Z", time());
-
       $stamp = (int)$stamp - (int)$gmt + (int)$current;
 
       return $stamp;
       $stamp = (int)$stamp - (int)$gmt + (int)$current;
 
       return $stamp;