Skip to content
Snippets Groups Projects
Commit a9237416 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Use UTCDateTime.replace method for rounded_usecs.

instead of deprecated microsecond property setter.
parent f7df4499
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!38Round microseconds in RawInputClient
...@@ -557,5 +557,6 @@ def round_usecs(time): ...@@ -557,5 +557,6 @@ def round_usecs(time):
if rounded_usecs > 999000: if rounded_usecs > 999000:
rounded_usecs = 0 rounded_usecs = 0
time += 1 time += 1
time.microsecond = rounded_usecs if rounded_usecs != usecs:
time = time.replace(microsecond=rounded_usecs)
return time return time
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment