Skip to content

Datetime update #34

@patgod85

Description

@patgod85

Hi. I have an entity with DateTime field

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="work_start", type="datetime", nullable=true)
     * @Serializer\Expose
     * @Serializer\Type("DateTime")
     */
    private $workStart;

Every other field updates correctly with PUT request. But the field.

I receive data from client in format 2012-02-25T21:00:00.000Z

Can you assist me to find a clue?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions