According to ISO8601 any number of digits is permitted for fractional seconds, the issue is that Python assumes these are microsecond, and will fail if we have more than 6 digits.
In the event that we detect more that 6 digits, truncate the fractional part and pass it to datetime.
According to ISO8601 any number of digits is permitted for fractional seconds, the issue is that Python assumes these are microsecond, and will fail if we have more than 6 digits.
In the event that we detect more that 6 digits, truncate the fractional part and pass it to datetime.