fixed duration calculation

This commit is contained in:
dg9vh 2016-11-03 20:46:07 +00:00
parent 8a9719ead7
commit 5cde533d5a
2 changed files with 4 additions and 4 deletions

View file

@ -57,9 +57,9 @@ foreach ($lastHeard as $listElem) {
}else{
echo"<td nowrap>$listElem[5]</td>";
}
$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"<td nowrap>$diff s</td>";
}

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20161103-4");
define("VERSION", "20161103-5");
?>