diff --git a/admin/availability.php b/admin/availability.php index 09f23a24..cf118b13 100644 --- a/admin/availability.php +++ b/admin/availability.php @@ -111,7 +111,7 @@ xhtml_head(T_("Modify time slots"),true,$css,$js_head);//,true,array("../css/shi * */ -$sql = "SELECT CONVERT_TZ(NOW(),'" . DEFAULT_TIME_ZONE . "','UTC') as t";//'Australia/Victoria' +$sql = "SELECT CONVERT_TZ(NOW(),'" . get_setting("DEFAULT_TIME_ZONE") . "','UTC') as t";//'Australia/Victoria' $rs = $db->GetRow($sql); if (empty($rs) || !$rs || empty($rs['t'])) diff --git a/admin/callrestrict.php b/admin/callrestrict.php index 6d3d3b4a..459f6513 100644 --- a/admin/callrestrict.php +++ b/admin/callrestrict.php @@ -103,7 +103,7 @@ xhtml_head(T_("Set call restriction times"),true,$css,$js_head);//,array("../css * */ -$sql = "SELECT CONVERT_TZ(NOW(),'" . DEFAULT_TIME_ZONE . "','UTC') as t";//'Australia/Victoria' +$sql = "SELECT CONVERT_TZ(NOW(),'" . get_setting('DEFAULT_TIME_ZONE') . "','UTC') as t";//'Australia/Victoria' $rs = $db->GetRow($sql); if (empty($rs) || !$rs || empty($rs['t'])) diff --git a/admin/index.php b/admin/index.php index 1a65720f..6be6b8f4 100644 --- a/admin/index.php +++ b/admin/index.php @@ -47,7 +47,7 @@ include ("../lang.inc.php");
-