title: JDK8: unable to parse LocalTime
body: <p>I managed to parse a <code>String</code> to a <code>LocalDate</code> object:</p>
  
  <pre><code>DateTimeFormatter f1=DateTimeFormatter.ofPattern("dd MM yyyy");
  LocalDate d=LocalDate.parse("26 08 1984",f1);
  System.out.println(d); //prints "1984-08-26"
  </code></pre>
  
  <p>But I cannot do the same with <code>LocalTime</code>. This piece of code:</p>
  
  <pre><code>DateTimeFormatter f2=DateTimeFormatter.ofPattern("hh mm");
  LocalTime t=LocalTime.parse("11 08",f2); //exception here
  System.out.println(t);
  </code></pre>
  
  <p>Throws a <code>DateTimeParseException</code>:</p>
  
  <pre><code>Exception in thread "main" java.time.format.DateTimeParseException: Text '11 08' could not be parsed: Unable to obtain LocalTime from TemporalAccessor: {MinuteOfHour=8, HourOfAmPm=11},ISO of type java.time.format.Parsed
      at java.time.format.DateTimeFormatter.createError(Unknown Source)
      at java.time.format.DateTimeFormatter.parse(Unknown Source)
      at java.time.LocalTime.parse(Unknown Source)
      at com.mui.cert.Main.&lt;init&gt;(Main.java:21)
      at com.mui.cert.Main.main(Main.java:12)
  Caused by: java.time.DateTimeException: Unable to obtain LocalTime from TemporalAccessor: {MinuteOfHour=8, HourOfAmPm=11},ISO of type java.time.format.Parsed
      at java.time.LocalTime.from(Unknown Source)
      at java.time.LocalTime$$Lambda$15/1854731462.queryFrom(Unknown Source)
      at java.time.format.Parsed.query(Unknown Source)
      ... 4 more
  </code></pre>
  
  <p>What am I doing wrong?</p>