2
0
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:
Adam Zammit
2013-02-27 15:07:07 +11:00
parent 2b7eeff881
commit aefb0c9e6b
3 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);
} }