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

Extend @JsonFormat annotation to apply to date objects as well. #701

Conversation

CheeseE
Copy link

@CheeseE CheeseE commented Mar 7, 2017

Add @jsonformat annotation to dated fields, it is a fix for #699

@joelittlejohn
Copy link
Owner

We need to do something a little more sophisticated here. We shouldn't ever use yyyy-MM-dd'T'HH:mm:ss.SSS when we find "format": "date" in the schema.

We need to split these cases out and have a formatDates config option (c.f. formatDateTimes). We then need two methods on the annotator, dateField and dateTimeField (the current method needs to be renamed).

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

Successfully merging this pull request may close these issues.

2 participants