From ad1b0bf285233f0b5eac90960a139054f530d00e Mon Sep 17 00:00:00 2001 From: dg9vh Date: Fri, 4 Nov 2016 07:10:44 +0000 Subject: [PATCH] closed https://github.com/dg9vh/MMDVMHost-Dashboard/issues/62 --- include/functions.php | 5 +++-- version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 0afa20b..91579d1 100644 --- a/include/functions.php +++ b/include/functions.php @@ -395,7 +395,8 @@ function getLastHeard($logLines, $onlyLast) { function getActualMode($metaLastHeard, $mmdvmconfigs) { // returns mode of repeater actual working in $listElem = $metaLastHeard[0]; - $timestamp = new DateTime($listElem[0]); + $timestamp = new DateTime($listElem[0],new DateTimeZone(TIMEZONE)); + $mode = $listElem[1]; if (startsWith($mode, "DMR")) { $mode = "DMR"; @@ -403,7 +404,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) { if (defined("ENABLEXTDLOOKUP") && $listElem[7] == null || !defined("ENABLEXTDLOOKUP") && $listElem[6] == null) { return "".$mode.""; } else { - $now = new DateTime(); + $now = new DateTime('NOW',new DateTimeZone(TIMEZONE)); $hangtime = getConfigItem("General", "ModeHang", $mmdvmconfigs); if ($hangtime != "") { diff --git a/version.php b/version.php index ff3939c..e6a2aa5 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@