title: JodaTime parsing malformed at "PM" - but only on real device (works fine in local test)
body: <p>I am using JodaTime 2.9.9:</p>
  
  <p><code>implementation 'joda-time:joda-time:2.9.9'</code></p>
  
  <p>I am parsing the same Date/Time string in in a Local UnitTest (<code>test</code>) and on an Instrumented UnitTest (<code>androidTest</code>).</p>
  
  <p>The parsing code is:</p>
  
  <pre><code>    String testString = "1/25/2018 5:03:12 PM";
      System.out.println("FOO - str: '" + testString + "' length: " + testString.length());
      DateTime res = DateTime.parse(testString, DateTimeFormat.forPattern("MM/dd/yyyy hh:mm:ss a"));
      System.out.println("FOO - prs: " + res.toString());
      assertEquals("Month: ", 1, res.getMonthOfYear());
  </code></pre>
  
  <ul>
  <li>On Local UnitTest (<code>test</code>) - test passes:</li>
  </ul>
  
  <p><code>FOO - str: '1/25/2018 5:03:12 PM' length: 20
  FOO - prs: 2018-01-25T17:03:12.000Z
  </code></p>
  
  <ul>
  <li>On Instrumented UnitTest (<code>androidTest</code>) - test fails:</li>
  </ul>
  
  <p><code>java.lang.IllegalArgumentException: Invalid format: "1/25/2018 5:03:12 PM" is malformed at "PM"
  at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:945)</code></p>
  
  <p>Why?</p>