defaults timezone to UTC if not configured in setup.php
This commit is contained in:
parent
f038fcdb0d
commit
a8f53c0647
3 changed files with 5 additions and 1 deletions
2
ajax.php
2
ajax.php
|
@ -9,6 +9,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 = getMMDVMLog();
|
$logLinesMMDVM = getMMDVMLog();
|
||||||
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
||||||
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
$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 = getMMDVMLog();
|
$logLinesMMDVM = getMMDVMLog();
|
||||||
showLapTime("getMMDVMLog");
|
showLapTime("getMMDVMLog");
|
||||||
//getNames(" ");
|
//getNames(" ");
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20161103-3");
|
define("VERSION", "20161103-4");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue