Skip to content

Commit

Permalink
Fix issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsleuth committed Sep 18, 2021
1 parent c76de6c commit 247ca8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time_decode/time_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def to_chrome(self):
chrome_time = ((dt_obj - self.epoch_1601).total_seconds() - int(dt_tz))
chrome_micro = str(chrome_time).split('.')[1]
if (len(nano_seconds) == 6 and len(chrome_micro) < 6) or len(nano_seconds) > 6 or len(nano_seconds) == 6:
chrome_time = str(chrome_time).replace(str(chrome_time).split('.')[1], str(micro_seconds))
chrome_time = str(chrome_time).replace(str(chrome_time).split('.')[1], str(micro_seconds).zfill(6))
self.out_chrome = str(chrome_time).replace('.', '')
else:
self.out_chrome = str(int(chrome_time * 1000000))
Expand Down

0 comments on commit 247ca8d

Please sign in to comment.