mirror of https://github.com/borgbackup/borg.git
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:
parent
3665cc3024
commit
b27cc37e85
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue