diff --git a/txinfo.php b/txinfo.php index 8ea3305..9665748 100644 --- a/txinfo.php +++ b/txinfo.php @@ -57,9 +57,9 @@ foreach ($lastHeard as $listElem) { }else{ echo"$listElem[5]"; } - $UTC = new DateTimeZone("UTC"); - $d1 = new DateTime($listElem[0], $UTC); - $d2 = new DateTime('now', $UTC); + $tz = new DateTimeZone(TIMEZONE); + $d1 = new DateTime($listElem[0], $tz); + $d2 = new DateTime('now', $tz); $diff = $d2->getTimestamp() - $d1->getTimestamp(); echo"$diff s"; } diff --git a/version.php b/version.php index bfcdd6a..281ff51 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@