diff --git a/src/Controller/IllustrationController.php b/src/Controller/IllustrationController.php index cadfd09..88667d1 100755 --- a/src/Controller/IllustrationController.php +++ b/src/Controller/IllustrationController.php @@ -9,6 +9,7 @@ use Symfony\Component\Form\FormError; use App\Entity\Illustration as Entity; use App\Form\IllustrationType as Form; +use DateTime; class IllustrationController extends AbstractController { @@ -57,6 +58,7 @@ class IllustrationController extends AbstractController // Initialisation de l'enregistrement $em = $this->getDoctrine()->getManager(); $data = new Entity(); + $data->setSubmittime(new DateTime()); // Permission if(!$this->getUser()->hasRole("ROLE_ADMIN")&&($by=="admin"||$by=="update")) {