diff --git a/inc/formanswer.class.php b/inc/formanswer.class.php index c52524dc3..6318fe204 100644 --- a/inc/formanswer.class.php +++ b/inc/formanswer.class.php @@ -719,10 +719,8 @@ public function prepareInputForAdd($input) { $input['plugin_formcreator_forms_id'] = $form->getID(); // requester_id is actually the author // TODO : rename this column - $input['requester_id'] = isset($_SESSION['glpiID']) - ? $_SESSION['glpiID'] - : 0; - $input['request_date'] = date('Y-m-d H:i:s'); + $input['requester_id'] = $_SESSION['glpiID'] ?? 0; + $input['request_date'] = $_SESSION['glpi_currenttime']; $input['comment'] = ''; return $input;