diff --git a/include/functions.php b/include/functions.php index 7983166..9a32c6a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -340,9 +340,9 @@ function getHeardList($logLines, $onlyLast) { if ( strlen($callsign) < 11 ) { $name = ""; if (defined("ENABLEXTDLOOKUP")) { - array_push($heardList, array($timestamp, $mode, $callsign, $name, $id, $target, $source, $duration, $loss, $ber)); + array_push($heardList, array(convertTimezone($timestamp), $mode, $callsign, $name, $id, $target, $source, $duration, $loss, $ber)); } else { - array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source, $duration, $loss, $ber)); + array_push($heardList, array(convertTimezone($timestamp), $mode, $callsign, $id, $target, $source, $duration, $loss, $ber)); } $duration = ""; $loss =""; diff --git a/include/lh_ajax.php b/include/lh_ajax.php index 9346aaf..a5df876 100644 --- a/include/lh_ajax.php +++ b/include/lh_ajax.php @@ -9,7 +9,7 @@ $totalLH = count($lastHeard); - + - + setTimezone(new DateTimeZone(TIMEZONE)); + return $date->format('Y-m-d H:i:s'); +} ?> diff --git a/index.php b/index.php index 476f064..8d3f8d0 100644 --- a/index.php +++ b/index.php @@ -98,9 +98,11 @@ if (defined("ENABLEYSFGATEWAY")) { ?>
setTimezone(new DateTimeZone(TIMEZONE)); +echo "MMDVMHost-Dashboard V ".VERSION." | Last Reload ".$lastReload->format('Y-m-d, H:i:s')." (".TIMEZONE.")"; /*$time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; diff --git a/setup.php b/setup.php index 00e5416..3f27214 100644 --- a/setup.php +++ b/setup.php @@ -123,7 +123,65 @@ include "include/tools.php";

Global Configuration

-
+'; + echo 'Timezone'; + echo '
'; + echo ''; + echo '
'; + echo '
'; +} +get_tz_options(constant("TIMEZONE"), "Timezone", ''); +?> +
" name="LOGO" class="form-control" placeholder="http://your-logo" aria-describedby="LOGO">
diff --git a/version.php b/version.php index 75972fa..45a4d8b 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@
Time (UTC)Time () Mode Callsign
Time (UTC)Time () Mode Callsign