I have this strange situation. Following code
LocalDateTime.parse(
LocalDateTime.now().format(DateTimeFormatter.ISO_DATE),
DateTimeFormatter.ISO_DATE
);
throws
java.time.format.DateTimeParseException: Text '2018-07-05' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor: {},ISO resolved to 2018-07-05 of type java.time.format.Parsed
It looks like it cannot parse it's own formatted date.
openjdk version "1.8.0_141" OpenJDK Runtime Environment (build 1.8.0_141-8u141-b15-3~14.04-b15) OpenJDK 64-Bit Server VM (build 25.141-b15, mixed mode)