org.threeten.bp.format.DateTimeParseException: Text '2018-07-22T14:00:00-03:00' could not be parsed at index 19
问题 public static String formatter(String dateInPattern, String dateOutPattern) { OffsetDateTime dateInPatternFormat = OffsetDateTime.parse(dateInPattern, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ")); Date dateInValue = DateTimeUtils.toDate(Instant.parse(dateInPatternFormat.toString())); OffsetDateTime dateOutPatternFormat = OffsetDateTime.parse(dateOutPattern); return dateOutPatternFormat.format(DateTimeFormatter.ofPattern(dateInValue.toString())); } I need to enter a date in this