made some changes to date parsing trying to fix bugs
[squirrelmail.git] / functions / date.php
index bdc0ad586b64529bfdb5e9ebccf36b6a6fb4b355..4001dda0df280c64077d509649e296b84a7953f2 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;