Skip to content

Support specifying MVC format for LocalDateTime/LocalTime #18511

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

Closed
trygveaa opened this issue Oct 4, 2019 · 1 comment
Closed

Support specifying MVC format for LocalDateTime/LocalTime #18511

trygveaa opened this issue Oct 4, 2019 · 1 comment
Labels
status: superseded An issue that has been superseded by another

Comments

@trygveaa
Copy link

trygveaa commented Oct 4, 2019

Currently, you can specify the format to use for parsing/formatting LocalDate with spring.mvc.date-format. However, I don't see any way to specify the format for LocalDateTime or LocalTime (except programatically register the formatter).

I would also like to be able to specify that all these three Local-classes should use the ISO 8601 format, without having to specify that format myself.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 4, 2019
@trygveaa trygveaa changed the title Allow specifying LocaDateTime Allow specifying LocaDateTime format for mvc Oct 4, 2019
@trygveaa trygveaa changed the title Allow specifying LocaDateTime format for mvc Support specifying mvc format for LocalDateTime/LocalTime Oct 4, 2019
@wilkinsona wilkinsona changed the title Support specifying mvc format for LocalDateTime/LocalTime Support specifying MVC format for LocalDateTime/LocalTime Oct 7, 2019
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 22, 2019
@philwebb philwebb added this to the 2.3.x milestone Oct 22, 2019
@philwebb
Copy link
Member

philwebb commented Dec 2, 2019

Closing in favor of PR #18772

@philwebb philwebb closed this as completed Dec 2, 2019
@philwebb philwebb removed this from the 2.3.x milestone Dec 2, 2019
@philwebb philwebb added status: superseded An issue that has been superseded by another and removed type: enhancement A general enhancement labels Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

3 participants