10169: timestamp set to zero makes gramps crash on windows.

This commit is contained in:
SNoiraud 2017-08-21 17:12:31 +02:00
parent e215393abd
commit b03816a2c0

View File

@ -1278,7 +1278,7 @@ class BasePage: # pylint: disable=C1001
'<a href="' + URL_HOMEPAGE + '">', '<a href="' + URL_HOMEPAGE + '">',
'html_end' : '</a>', 'html_end' : '</a>',
'version' : VERSION} 'version' : VERSION}
if date is not None: if date is not None and date > 0:
msg += "<br />" msg += "<br />"
last_modif = datetime.datetime.fromtimestamp(date).strftime( last_modif = datetime.datetime.fromtimestamp(date).strftime(
'%Y-%m-%d %H:%M:%S') '%Y-%m-%d %H:%M:%S')