From 9c10b59c8b0cb3bf3394c240d31c6ef2da3c927f Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 17 Aug 2016 00:16:00 +0200 Subject: [PATCH] Narrativeweb : some dates are incorrect in tar archive. --- gramps/plugins/webreport/narrativeweb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 7171e1b8a..d28dc01cf 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -8000,7 +8000,7 @@ class NavWebReport(Report): of.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()