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

Partial update via PATCH ignores custom date format expressed through @JsonFormat [DATAREST-1214] #1524

spring-projects-issues opened this issue Mar 13, 2018 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Mar 13, 2018

Jan Zyka opened DATAREST-1214 and commented

Having entity with java.sql.Timestamp field annotated with @JsonFormat.

When creating new one using POST the custom format is recognised and used.
When doing partial update using PATCH, Content-type: application/json-patch+json the update fails with:

"message":"Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]"}

When parsing the value update falls back to Timestamp.valueOf(...) and ignores the @JsonFormat

Affects: 2.6.10 (Ingalls SR10), 3.0.5 (Kay SR5)

Reference URL:

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

No branches or pull requests

2 participants