-
Notifications
You must be signed in to change notification settings - Fork 38.2k
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
DateTimeFormatterRegistrar should fall back to ISO parsing by default #26985
Comments
Please note that changing the current behavior would be a breaking change. The documentation for Can you please provide more information regarding your exact use case? |
Yes, I know The reason I already said in first comment. This option should be true by default. About my real use case : I use RFC 3339 format in all time field in my rest api. It work well with json(jackson) without any config, the default config is good and standard. |
Have you tried annotating the corresponding parameter of your controller method with |
Yes, I can do that, but I want make it default without any config. |
Thanks for the feedback, @abccbaandy. Since changing the default would be a breaking change, we will revisit this topic for Spring Framework 6. |
I've slightly repurposed this issue for revisiting our fallback parsing behavior there. Based on the scenario described above, we should indeed leniently accept the default This is different from switching |
Affects: 5.3.7
Currently
DateTimeFormatterRegistrar
behavior is different from default JDKFor example, given
OffsetDateTime.parse(XXX)
, if XXX can be parsed this way, it should be parsed byDateTimeFormatterRegistrar
too.The text was updated successfully, but these errors were encountered: