Im having issue with formatting this string into ZonedDateTime
object. I tried following oracle docs but I failed and I have no idea how it should be.
String date = "Sat Dec 01 20:56:28 CET 2018"
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss z uuuu");
ZonedDateTime dateTime = ZonedDateTime.parse(date, formatter);
I get
java.time.format.DateTimeParseException: Text 'Sat Dec 01 20:56:28 CET 2018' could not be parsed at index 0