Closed alex88 closed 7 years ago
The issue seems with the microseconds, you just need to run Timex.format!(Timex.now, "{ss}")
that it generates that exception
The issue is that binary_part
takes 3 arguments, the 2nd is the start index, the 3rd is the number of bytes to take. It looks like something is passing a tuple to it instead of the correct arguments. That tuple is a microsecond tuple I'm almost positive, which means there is a bug in the {ss}
formatter. I'll take a look!
What I've noticed is that every time it happens, the microseconds has 5 digits instead of 6
Pushed in 3.1.9
I'm using this function in my code
however sometimes I get this exception
I've tried to manually run the function may times on
iex
console and after 10-15 tries I got the same exception.What could be the issues here?