-
Notifications
You must be signed in to change notification settings - Fork 481
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
Misinterpretation of allowed format at converting JSR310 Date and Time to String. #747
Comments
@garethahealy Thanks for merging my PR! When are you planning to release 6.5? |
I'm happy that this problem is fixed, thanks @kazuki43zoo @garethahealy ! |
@kazuki43zoo ; theres an outstanding java11 build problem: I'd like to wait until i've had some feedback on this. If its going to take a while to fix, i'll release soon - next week or so. |
@garethahealy Thank you for reaction!! I can wait to fix build error on JDK 11 :D |
Whats your runtime?
Whats the problem?
I copied with converting from JSR310
ZonedDateTime
toString
.I defined
date-format
based on the pattern allowed byDateTimeFormatter
.But pattern
V
not allowed and gotIllegallArgumentException
.u
is also interpreted as the day of the week, not the year, and is allowed as a result.Observed Results:
It seems the bug of allowed format interpretation.
If destination is
String
object, ActuallySimpleDateFormat
is used to validatedate-format
instead ofDateTimeFormatter
.Please look these classes.
Expected Results:
When converting from JSR310 Date and Time to
String
, should useDateTimeFormatter
to validatedate-format
.Link to GitHub repo with Unit test
none.
The text was updated successfully, but these errors were encountered: