Commit 54490a56 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

Correctif sur l'input Date

parent 0e457ef7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;

class Evenement {
    const DATE_FORMAT = 'd/m/Y H:i';
    const DATE_FORMAT = 'Y-m-d\tH:i';
    const SEPARATOR = ';';

    private ?int $id = -1;
+4 −4
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
namespace UnicaenEvenement\Form\Evenement;

use Laminas\Form\Element\Button;
use Laminas\Form\Element\DateTime;
use Laminas\Form\Element\DateTimeLocal;
use Laminas\Form\Element\Text;
use Laminas\Form\Form;
use Laminas\InputFilter\Factory;
@@ -15,14 +15,14 @@ class EvenementForm extends Form {
    {
        //date de planif
        $this->add([
            'type' => DateTime::class,
            'type' => DateTimeLocal::class,
            'name' => 'planification',
            'options' => [
                'label' => 'Date de planification * :',
                'format' => Evenement::DATE_FORMAT,
            ],
            'attributes' => [
                'type' => 'planification',
                'id' => 'planification',
            ],
        ]);
        //parametres (todo json => array)
@@ -33,7 +33,7 @@ class EvenementForm extends Form {
                'label' => 'Paramètre :',
            ],
            'attributes' => [
                'type' => 'parametres',
                'id' => 'parametres',
            ],
        ]);
        //bouton