title: Java8 DateTimeFormatter am/pm
body: <p>I am trying to parse some dates, but the DateTimeParser seems to disagree with me on what is valid</p>
  
  <pre><code>import java.time.ZonedDateTime
  import java.time.format.DateTimeFormatter
  import java.util.Locale
  
  ZonedDateTime.parse("Wed Jul 16, 2016 4:38pm EDT", DateTimeFormatter.ofPattern("EEE MMM dd, yyyy hh:mma z", Locale.US))
  </code></pre>
  
  <p>When I try this it says </p>
  
  <pre><code>java.time.format.DateTimeParseException: Text 'Wed Jul 16, 2016 4:38pm EDT' could not be parsed at index 17
  </code></pre>
  
  <p>So something is wrong with the hours? When I drop one of the 'h' it gets further ( altough it should just 0-pad my hours ), but then it doesn't like the pm-stuff</p>
  
  <pre><code>ZonedDateTime.parse("Wed Jul 16, 2016 4:38pm EDT", DateTimeFormatter.ofPattern("EEE MMM dd, yyyy h:mma z", Locale.US))
  java.time.format.DateTimeParseException: Text 'Wed Jul 16, 2016 4:38pm EDT' could not be parsed at index 21
  </code></pre>
  
  <p>I don't know what his exact problem is. When I try 'hh:mmaa' as a pattern it says that it doesn't like two a and now i am stuck, since the error messages are not helpful.</p>