Skip to content

Updated Javadoc: date format patterns SPR-17366 #1989

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

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

volkovandr
Copy link
Contributor

The javadoc here: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/format/annotation/DateTimeFormat.ISO.html#DATE_TIME

states that the ISO DATE_TIME format uses the pattern yyyy-MM-dd'T'HH:mm:ss.SSSZ

but in fact the pattern is yyyy-MM-dd'T'HH:mm:ss.SSSXXX

The change was made by this commit:

bb94ba6#diff-4e8b86c8c802560c74bf5647b9c91bb6

The javadoc needs to be changed to reflect the reality. The same also applies for the TIME format.

The actual difference is in the colon in the time zone offset. It was added in the commit mentioned above, and the examples in the documentation are correct. But not the pattern and it might be confusing.

@jhoeller jhoeller merged commit 61403e3 into spring-projects:master Oct 11, 2018
@jhoeller
Copy link
Contributor

Well spotted! I'll backport this to 5.0.10 as well.

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