diff --git a/email.php b/email.php index a9ebbc1b..64f27fb7 100644 --- a/email.php +++ b/email.php @@ -179,7 +179,7 @@ if (isset($_POST['firstname'])) //Add a note that sent $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); diff --git a/include/limesurvey/optout.php b/include/limesurvey/optout.php index a7e9fc17..14a8cffa 100644 --- a/include/limesurvey/optout.php +++ b/include/limesurvey/optout.php @@ -79,7 +79,7 @@ else //Add a case note to clarify (need to translate this string) $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); diff --git a/include/limesurvey/quexs.php b/include/limesurvey/quexs.php index baac46ae..7193d65f 100644 --- a/include/limesurvey/quexs.php +++ b/include/limesurvey/quexs.php @@ -115,7 +115,7 @@ function quexs_completed_by_respondent($surveyid,$clienttoken) //Add a case note to clarify (need to translate this string) $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); }