From 59ebe2d236b94cf1c9e0d1c77a62a7383cf59a8b Mon Sep 17 00:00:00 2001 From: Piotr Marynczak Date: Wed, 3 Jul 2024 12:59:09 +0200 Subject: [PATCH] [WZUW-781] chore: added validfrom key upon creating a participant --- src/Service/SurveyService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/SurveyService.php b/src/Service/SurveyService.php index 29026e3..af6ffda 100644 --- a/src/Service/SurveyService.php +++ b/src/Service/SurveyService.php @@ -23,6 +23,7 @@ use Meritoo\LimeSurvey\ApiClient\Result\Item\Survey; use Meritoo\LimeSurvey\ApiClient\Result\Item\SurveySummary; use Meritoo\LimeSurvey\ApiClient\Type\MethodType; use Meritoo\LimeSurvey\ApiClient\Type\ReasonType; +use Meritoo\Common\Utilities\Date; /** * Service that serves surveys and participants of surveys @@ -301,6 +302,7 @@ class SurveyService 'firstname' => $firstName, 'lastname' => $lastName, 'email' => $email, + 'validfrom' => date('Y-m-d h:i:s'), ], ];