From b03816a2c0c157d0fab98f8f9bce8f8a5534cf83 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 21 Aug 2017 17:12:31 +0200 Subject: [PATCH] 10169: timestamp set to zero makes gramps crash on windows. --- gramps/plugins/webreport/basepage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/basepage.py b/gramps/plugins/webreport/basepage.py index 7b1608ea9..3e6aaccc2 100644 --- a/gramps/plugins/webreport/basepage.py +++ b/gramps/plugins/webreport/basepage.py @@ -1278,7 +1278,7 @@ class BasePage: # pylint: disable=C1001 '', 'html_end' : '', 'version' : VERSION} - if date is not None: + if date is not None and date > 0: msg += "
" last_modif = datetime.datetime.fromtimestamp(date).strftime( '%Y-%m-%d %H:%M:%S')