ZonedDateTime kann beim Parsen eines Datums nicht von TemporalAccessor abgerufen werden

Mit Java 1.8.0_51 den folgenden Code (aus OffsetDateTime kann nicht von TemporalAccessor abgerufen werden)

DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd").withZone(ZoneId.of("Europe/Berlin"));
OffsetDateTime offsetDateTime = ZonedDateTime.parse("20151113", formatter).toOffsetDateTime();
System.out.println(offsetDateTime.format(DateTimeFormatter.ISO_DATE));

löst eine Ausnahme aus:

java.time.format.DateTimeParseException: Text '20151113' could not be parsed: Unable to obtain ZonedDateTime from TemporalAccessor: {},ISO,Europe/Berlin resolved to 2015-11-13 of type java.time.format.Parsed
at java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:1918)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1853)
at java.time.ZonedDateTime.parse(ZonedDateTime.java:597)

Was mache ich dieses Mal falsch?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage