I am trying to parse an ISO8601 time string of format "yyyy-MM-dd'T'HH:mm:ssZ" using the below line for ZonedDateTime object:
ZonedDateTime date = ZonedDateTime.parse("2021-02-19T14:32:12+0000", DateTimeFormatter.ISO_ZONED_DATE_TIME);
However I am getting the below error when doing this:
java.time.format.DateTimeParseException: Text '2021-02-19T14:32:12+0000' could not be parsed at index 19
I cant imagine this is not allowed as the + symbol is a valid character for the parse. Can anyone assist on what is wrong here?