I\'m trying to use Java 8\'s java.time.format.DateTimeFormatter to parse a formatted string into a java.time.LocalTime object. However, I\'m runnin
java.time.format.DateTimeFormatter
java.time.LocalTime
The pattern symbol H stands for 24-hour-clock. So the parser tells you in case of "PM" that "08"-hour can only be in the scope of AM that is the first half of day.
Solution: Use pattern symbol "h" instead (for 12-hour-clock).