Commit 14a4cddb authored by jvoisin's avatar jvoisin

Improve the display of tarfile's members mtime

parent 8e41b098
Pipeline #24312 failed with stages
in 25 seconds
......@@ -239,7 +239,7 @@ class TarParser(ArchiveBasedAbstractParser):
assert isinstance(member, tarfile.TarInfo) # please mypy
metadata = {}
if member.mtime != 0:
metadata['mtime'] = str(member.mtime)
metadata['mtime'] = datetime.datetime.fromtimestamp(member.mtime)
if member.uid != 0:
metadata['uid'] = str(member.uid)
if member.gid != 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment