Another array detection "if" statement.
[squirrelmail.git] / functions / date.php
index 9f9f48d1b813bbc106c2ebe88f96c241368f895e..6cb4b68ccc9b74cc57bf5bff2c0e62247cc1908c 100644 (file)
@@ -13,6 +13,7 @@
 
    // corrects a time stamp to be the local time
    function getGMTSeconds($stamp, $gmt) {
+      global $invert_time;
       if (($gmt == "Pacific") || ($gmt == "PST"))
          $gmt = "-0800";
       else if (($gmt == "EDT"))
    }
 
    function getDateString($stamp) {
+      global $invert_time;
       $now = time();
       $dateZ = date("Z", $now);
       if ($invert_time)
           $dateZ = - $dateZ;
-      $midnight = $now - ($now % 86400) - 86400 - $dateZ;
+      $midnight = $now - ($now % 86400) - $dateZ;
 
       if ($midnight < $stamp) {
          // Today