Jodatime Issues On Android 5.0
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 libr
Solution 1:
This is probably a localization issue. It appears that your default local does not know the "AM"-string, but something else.
Joda-Time just delegates to the underlying JVM-resource, in your case to the Android-resources which can be different. To do so, Joda-Time finally uses the class DateFormatSymbols
. Please check your locale and the output of getAmPmStrings() for a proper diagnosis.
Dependent on the result of the diagnosis either setting the locale explicitly by using LocalTime.parse(timeToParse, fmt.withLocale(Locale locale));
helps, or you use a suitable form of string input preprocessing.
Post a Comment for "Jodatime Issues On Android 5.0"