Skip to content

Commit

Permalink
Fixed time precision issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brettforbes committed Jan 26, 2024
1 parent dc03588 commit de291fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stixorm/module/orm/import_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def val_tql(val):
dt = val.strftime("%Y-%m-%dT%H:%M:%S.%f")
millisecs = int(round(val.microsecond/1000))
dt_split = dt.split('.')
actual = dt_split[0] + "." + str(millisecs) + "Z"
return str(val.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3])
actual = dt_split[0] + "." + str(millisecs)
return actual
else:
return logger.error(f'value not supported: {val}')

Expand Down

0 comments on commit de291fd

Please sign in to comment.