Browse Source

- Improves the human-readable output in the label file

Patrick Jattke 7 years ago
parent
commit
9e9fe28404
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/ID2TLib/LabelManager.py

+ 1 - 1
code/ID2TLib/LabelManager.py

@@ -76,7 +76,7 @@ class LabelManager:
 
             # add timestamp in human-readable format
             timestamp_hr = doc.createElement(self.TAG_TIMESTAMP_HR)
-            timestamp_hr_text = datetime.fromtimestamp(int(timestamp_entry)).strftime('%Y-%m-%d %H:%M:%S')
+            timestamp_hr_text = datetime.fromtimestamp(timestamp_entry).strftime('%Y-%m-%d %H:%M:%S.%f')
             timestamp_hr.appendChild(doc.createTextNode(timestamp_hr_text))
             timestamp_root.appendChild(timestamp_hr)