mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
NOW() should be converted to UTC
This commit is contained in:
@@ -179,7 +179,7 @@ if (isset($_POST['firstname']))
|
|||||||
//Add a note that sent
|
//Add a note that sent
|
||||||
|
|
||||||
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
||||||
VALUES ($case_id,$operator_id,'" . T_("Self completion invitation sent via email to") . ": " . $_POST['email'] . "',NOW())";
|
VALUES ($case_id,$operator_id,'" . T_("Self completion invitation sent via email to") . ": " . $_POST['email'] . "',CONVERT_TZ(NOW(),'System','UTC'))";
|
||||||
|
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ else
|
|||||||
|
|
||||||
//Add a case note to clarify (need to translate this string)
|
//Add a case note to clarify (need to translate this string)
|
||||||
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
||||||
VALUES ($case_id,1,'Self completion refused via opt out function',NOW())";
|
VALUES ($case_id,1,'Self completion refused via opt out function',CONVERT_TZ(NOW(),'System','UTC'))";
|
||||||
|
|
||||||
$connect->Execute($sql);
|
$connect->Execute($sql);
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ function quexs_completed_by_respondent($surveyid,$clienttoken)
|
|||||||
|
|
||||||
//Add a case note to clarify (need to translate this string)
|
//Add a case note to clarify (need to translate this string)
|
||||||
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
$sql = "INSERT INTO `case_note` (case_id,operator_id,note,datetime)
|
||||||
VALUES ($case_id,1,'Self completed online',NOW())";
|
VALUES ($case_id,1,'Self completed online',CONVERT_TZ(NOW(),'System','UTC'))";
|
||||||
|
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user