fixed duration calculation
This commit is contained in:
parent
8a9719ead7
commit
5cde533d5a
2 changed files with 4 additions and 4 deletions
|
@ -57,9 +57,9 @@ foreach ($lastHeard as $listElem) {
|
||||||
}else{
|
}else{
|
||||||
echo"<td nowrap>$listElem[5]</td>";
|
echo"<td nowrap>$listElem[5]</td>";
|
||||||
}
|
}
|
||||||
$UTC = new DateTimeZone("UTC");
|
$tz = new DateTimeZone(TIMEZONE);
|
||||||
$d1 = new DateTime($listElem[0], $UTC);
|
$d1 = new DateTime($listElem[0], $tz);
|
||||||
$d2 = new DateTime('now', $UTC);
|
$d2 = new DateTime('now', $tz);
|
||||||
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
||||||
echo"<td nowrap>$diff s</td>";
|
echo"<td nowrap>$diff s</td>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20161103-4");
|
define("VERSION", "20161103-5");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue