safe_timestamp: arg is always an int

the Item object already does the bigint_to_int decode when accessing .mtime/.atime/.ctime
This commit is contained in:
Thomas Waldmann 2017-03-21 02:40:50 +01:00
parent 3665cc3024
commit b27cc37e85
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ def safe_ns(ts):
def safe_timestamp(item_timestamp_ns):
t_ns = safe_ns(bigint_to_int(item_timestamp_ns))
t_ns = safe_ns(item_timestamp_ns)
return datetime.fromtimestamp(t_ns / 1e9)