From 1cbb0f990f42f8afa52a327ca701fce695562380 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 15 Aug 2016 21:15:55 +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 8e2aaa73f..7181ec3d9 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -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()