My app has a function to translate HH:MM:SS strings to milliseconds (and another one to reverse the process). It was working fine until my tablet was updated to Android 7.0.
It now throws an error at this line:
Here are the first three lines of the error log:
I tried changing this to eliminate the date - I don't need the date itself. My modified code is
It, too, throws an error:
Note that in all cases - even with "TimeParse" - the error says Unparseable Date
Is this a bug? Or is it something I'm doing wrong that was forgiven in versions before 7.0 but not any more?
It now throws an error at this line:
B4X:
' HoursMinsSecs format is "##:##:##"
ls1 = DateTime.DateTimeParse("01/01/01", HoursMinsSecs)
B4X:
java.text.ParseException: Unparseable date: "00:03:05"
at java.text.DateFormat.parse(DateFormat.java:358)
at anywheresoftware.b4a.keywords.DateTime.DateTimeParse(DateTime.java:191)
I tried changing this to eliminate the date - I don't need the date itself. My modified code is
B4X:
ls1 = DateTime.TimeParse(HoursMinsSecs)
B4X:
java.text.ParseException: Unparseable date: "00:03:05"
at java.text.DateFormat.parse(DateFormat.java:358)
at anywheresoftware.b4a.keywords.DateTime.TimeParse(DateTime.java:171)
Is this a bug? Or is it something I'm doing wrong that was forgiven in versions before 7.0 but not any more?