-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Cannot handle both Date and DateTime #134
Comments
I was wondering if it was possible to extend the date time handler or modify the configuration at runtime in order to change the format although I've not spent too much time trying to figure it out. |
I have same needs I guess it could be interesting to allow |
mmmh type is not a good option, because Let's use an other annotation or something like that, configuring the date time at runtime could be OK, but if you want to serialize datetimes in different format, it'll be not possible |
I made an implementation of this on https://github.com/rezzza/JMSSerializerBundle/compare/datetime_annotation Issue:
Thought ? /cc @schmittjoh @beberlei |
This is now possible by using |
Thanks ;) |
The DateTime handler only allows for exactly one format. However i need both Date and DateTime serializations.
The text was updated successfully, but these errors were encountered: