We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45aee6b commit 8209598Copy full SHA for 8209598
yoti_python_sdk/date_parser.py
@@ -34,7 +34,7 @@ def datetime_with_microsecond(string):
34
hour = int(time_split[3])
35
minute = int(time_split[4])
36
second = int(time_split[5])
37
- microsecond = int(float("0." + time_split[6]) * 1e6)
+ microsecond = int(round(float("0." + time_split[6]) * 1e6))
38
return datetime(year, month, day, hour, minute, second, microsecond)
39
except ValueError:
40
if logging.getLogger().propagate:
0 commit comments