RFR: JDK-8033662 DateTimeFormatter parsing ignores withZone()
scolebourne at joda.org
Wed Mar 12 12:29:47 UTC 2014
This is a request for review of this bug:
and the duplicate:
The javadoc of the method java.time.format.DateTimeFormatter::withZone says:
"If no zone has been parsed, then this override zone will be included
in the result of the parse where it can be used to build instants and
However, the implementation doesn't obey this.
This is a very unfortunate bug that makes some date-time parsing a lot harder.
A second related bug in an egde case - not properly handling a
ChronoZonedDateTime from TemporalField.resolve - is also tested for
The patch includes no spec changes.
The patch includes new and refactored TCK tests. The new tests for
withZone() and withChronology() are based on the spec.
I need a reviewer and a committer please.
More information about the core-libs-dev