How to Fix UnsupportedTemporalTypeException when formatting Java 8 Instant to String
The Java 8 Instant is a single instantaneous point in the timeline used to record event time stamps. You can add timezone value(DateTimeFormatter.ofPattern(“yyyy-MM-dd HH:mm:ss z”).withZone(ZoneId.systemDefault())) in order resolve the UnsupportedTemporalTypeException …