Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime / DateTime Deserialize without timezone #706

Closed
nicram-cf opened this issue Dec 9, 2018 · 3 comments
Closed

DateTime / DateTime Deserialize without timezone #706

nicram-cf opened this issue Dec 9, 2018 · 3 comments

Comments

@nicram-cf
Copy link

nicram-cf commented Dec 9, 2018

Hello,
I try to achieve 'Y-m-d' (without time, that string I get from external soap source) date format from serialize and deserialize.

    /**
     * @ORM\Column(type="date_immutable")
     * @JMS\Type("DateTimeImmutable<'Y-m-d','','Y-m-d'>")
     *
     */
    private $startDate;

This generates error:

Unexpected token "'" (_apostrophe) at line 1 and column 28:
DateTimeImmutable<'Y-m-d','','Y-m-d'>

With DateTime is the same.

@goetas
Copy link
Collaborator

goetas commented Dec 9, 2018

see schmittjoh/serializer#1019

@goetas goetas added the bug label Dec 9, 2018
@goetas
Copy link
Collaborator

goetas commented Dec 9, 2018

This bug was introduced in serializer v2.0

@goetas
Copy link
Collaborator

goetas commented Dec 12, 2018

fixed in schmittjoh/serializer#1019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants