I try to format a Datestring to OffsetDateTime with the Java buildIn DateTimeFormatter. My DateTimeFormatter does not work as expected.
The String is: "2018-11-12T14:55:17 +0100"
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'hh:mm:ssZ");
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'hh:mm:ssZZZZZ");
DateTimeFormatter.ISO_OFFSET_DATE_TIME;
I expected, that with the DateTimeFormater I will get a proper OffsetDateTime. may one can help me out of this situation?