Browse Source

more places needed the $invert_time variable declared global to be able to be read from the config file.

gpadgham 25 years ago
parent
commit
65c563e75d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      functions/date.php

+ 2 - 0
functions/date.php

@@ -13,6 +13,7 @@
 
 
    // corrects a time stamp to be the local time
    // corrects a time stamp to be the local time
    function getGMTSeconds($stamp, $gmt) {
    function getGMTSeconds($stamp, $gmt) {
+      global $invert_time;
       if (($gmt == "Pacific") || ($gmt == "PST"))
       if (($gmt == "Pacific") || ($gmt == "PST"))
          $gmt = "-0800";
          $gmt = "-0800";
       else if (($gmt == "EDT"))
       else if (($gmt == "EDT"))
@@ -70,6 +71,7 @@
    }
    }
 
 
    function getDateString($stamp) {
    function getDateString($stamp) {
+      global $invert_time;
       $now = time();
       $now = time();
       $dateZ = date("Z", $now);
       $dateZ = date("Z", $now);
       if ($invert_time)
       if ($invert_time)