This commit is contained in:
parent
8eb1d17103
commit
923e57baf3
2 changed files with 5 additions and 4 deletions
|
@ -8,6 +8,8 @@ include "include/functions.php";
|
||||||
$mmdvmconfigs = getMMDVMConfig();
|
$mmdvmconfigs = getMMDVMConfig();
|
||||||
if (!defined("MMDVMLOGPREFIX"))
|
if (!defined("MMDVMLOGPREFIX"))
|
||||||
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
||||||
|
if (!defined("TIMEZONE"))
|
||||||
|
define("TIMEZONE", "UTC");
|
||||||
$logLinesMMDVM = getShortMMDVMLog();
|
$logLinesMMDVM = getShortMMDVMLog();
|
||||||
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
||||||
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
||||||
|
@ -44,9 +46,8 @@ foreach ($lastHeard as $listElem) {
|
||||||
}else{
|
}else{
|
||||||
echo"<td nowrap>$listElem[6]</td>";
|
echo"<td nowrap>$listElem[6]</td>";
|
||||||
}
|
}
|
||||||
$UTC = new DateTimeZone("UTC");
|
$d1 = new DateTime($listElem[0], new DateTimeZone(TIMEZONE));
|
||||||
$d1 = new DateTime($listElem[0], $UTC);
|
$d2 = new DateTime('now', new DateTimeZone(TIMEZONE));
|
||||||
$d2 = new DateTime('now', $UTC);
|
|
||||||
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
$diff = $d2->getTimestamp() - $d1->getTimestamp();
|
||||||
echo"<td nowrap>$diff s</td>";
|
echo"<td nowrap>$diff s</td>";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20161108-1");
|
define("VERSION", "20161108-2");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue