-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Support iso offset time and date-time conversion with MVC and WebFlux by setting time or date-time properties to iso-offset #21630
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
Conversation
Added ISOOffset format shortcut added for DateFormatters
@gaurav-91 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@gaurav-91 Thank you for signing the Contributor License Agreement! |
@philwebb: Did you get a chance to go through the PR. Please let me know if code need to be reviewed together. thanks |
@gaurav-91 I'm afraid we have a number of bugs that need my attention before we release 2.3.1. It might be another week or so before I can get to this. |
@gaurav-91 Thanks for the PR. Could you add some tests to make sure that the |
Sure will add it by today. |
Test cases added for isooffset format
@mbhave I have added the test cases but they seem to be failing. Looks like OffsetDateTime converters are being used. And if I use LocalDate Object that fails while parsing as we are trying to parse ISO_Offset date. Could you please take a look what I am doing wrong here. Thanks |
@mbhave Could you please take a look at the test cases added by me, and help me understand what I am doing wrong in that. Thanks |
Thanks for the PR, @gaurav-91. I don't think it makes sense to offer ISO offset formatting for dates. The date format is used to configure the date format of Spring Framework's |
Thank you @wilkinsona . It syncs up with my understanding, I will start working on the changes mentioned by you. |
How's it going, @gaurav-91? |
@wilkinsona I have made the changes as suggested by you. Test case for spring.mvc.format.time seems to be failing. I have committed the code done so far. Could you please take look and advice if possible. Thanks |
...c/test/java/org/springframework/boot/autoconfigure/web/format/WebConversionServiceTests.java
Outdated
Show resolved
Hide resolved
To fix the format Issue
IsoOffset Timeformat test case fixed
Thanks very much for making your first contribution to Spring Boot, @gaurav-91. The proposed changes have now been merged into master. If you're interested, I also added a small polishing commit, primarily to allow |
@wilkinsona Any other issues which I could pick up. |
@gaurav-91 Thanks for the offer. We have an ideal for contribution label that may be of interest. |
Fix for #21531