My app has been working for some time, but after the release of Android 5.0 it crashes on devices running this version. I'm using JodaTime 2.6 for date handling and it's this library that suddenly throws the following exception:
java.lang.IllegalArgumentException: Invalid format: "6:06:00 AM" is malformed at "AM"
Ive verified that the corresponding string I'm trying to parse has the correct format.
UPDATE(Here is code that fails)
private void doSomething(DateTime time, String timeToParse,int day, int month) {
DateTimeFormatter fmt = DateTimeFormat.forPattern("h:mm:ss a");
//Fails here:
LocalTime timeFromString = LocalTime.parse(timeToParse,fmt);
}
Anyone experience similar issues?