2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Remove references to old DEFAULT_TIME_ZONE config constant (use get_settings instead)

This commit is contained in:
Adam Zammit
2015-08-05 10:36:21 +10:00
parent 5f539c3f60
commit f18f8852a0
4 changed files with 4 additions and 4 deletions

View File

@@ -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']))

View File

@@ -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']))

View File

@@ -47,7 +47,7 @@ include ("../lang.inc.php");
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" style="" class=" " >
<head>
<meta charset="utf-8" >
<title><?php echo T_("Administrative Tools") ;?> </title>
<title><?php echo T_("queXS Administration") ;?> </title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@@ -93,7 +93,7 @@ if (isset($_POST['day']))
xhtml_head(T_("Set default shift times"),true,$css,$js_head);//T_("Modify shift template"),array("../css/shifts.css"),array("../js/addrow-v2.js")
$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);