I am using SimpleDateFormat to format times in Android. The goal is to get a human readable time representation out of a long which contains the time in milliseconds:
var simpleDateFormat = SimpleDateFormat("s.SS")
simpleDateFormat.timeZone = TimeZone.getTimeZone("UTC")
var result = simpleDateFormat.format(timeInMillis)
I have encountered the following very weird bug: the second last digit of timeInMillis is a 7 or an 8 and the digit before is a 5, the formating is wrong, since the result 1/100 of a second too small.
Example:
timeInMillis = 1570
Expected value of result: 1.57
Actual value of result 1.56
Can anyone recreate this bug? And where can I report it?