Narrativeweb : some dates are incorrect in tar archive.

This commit is contained in:
SNoiraud 2016-08-15 21:15:55 +02:00
parent 87e5279642
commit 1cbb0f990f

View File

@ -9168,7 +9168,7 @@ class NavWebReport(Report):
output_file.flush()
tarinfo = tarfile.TarInfo(self.cur_fname)
tarinfo.size = len(string_io.getvalue())
tarinfo.mtime = date if date is not None else time.time()
tarinfo.mtime = date if date != 0 else time.time()
if not win():
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()