diff --git a/include/txinfo.php b/include/txinfo.php
index 83e49e3..e414d1d 100644
--- a/include/txinfo.php
+++ b/include/txinfo.php
@@ -19,6 +19,7 @@
DSTAR-ID |
Target |
Source |
+ TX-Time |
diff --git a/txinfo.php b/txinfo.php
index ca38556..fabdede 100644
--- a/txinfo.php
+++ b/txinfo.php
@@ -12,19 +12,24 @@ $lastHeard = getLastHeard($reverseLogLinesMMDVM, True);
foreach ($lastHeard as $listElem) {
echo "";
if ($listElem[6] == null) {
- echo"$listElem[0] | ";
- echo"$listElem[1] | ";
- echo"$listElem[2] | ";
+ echo"$listElem[0] | ";
+ echo"$listElem[1] | ";
+ echo"$listElem[2] | ";
if (defined("ENABLEXTDLOOKUP")) {
- echo "".getName($listElem[2])." | ";
+ echo "".getName($listElem[2])." | ";
}
- echo"$listElem[3] | ";
- echo"$listElem[4] | ";
+ echo"$listElem[3] | ";
+ echo"$listElem[4] | ";
if ($listElem[5] == "RF"){
- echo "RF | ";
+ echo "RF | ";
}else{
- echo"$listElem[5] | ";
+ echo"$listElem[5] | ";
}
+ $UTC = new DateTimeZone("UTC");
+ $d1 = new DateTime($listElem[0], $UTC);
+ $d2 = new DateTime('now', $UTC);
+ $diff = $d2->getTimestamp() - $d1->getTimestamp();
+ echo"$diff s | ";
}
echo "
";
}
diff --git a/version.php b/version.php
index 80a896d..1732b9e 100644
--- a/version.php
+++ b/version.php
@@ -1,3 +1,3 @@