diff --git a/gramps2/src/plugins/DetAncestralReport.py b/gramps2/src/plugins/DetAncestralReport.py index 20a3a0924..9bb0bf547 100644 --- a/gramps2/src/plugins/DetAncestralReport.py +++ b/gramps2/src/plugins/DetAncestralReport.py @@ -324,10 +324,10 @@ class DetAncestorReport(Report): place= "_____________" if date.getDate() != "": - if date.getDay() > 0 and date.getMonth() > 0 and \ + if date.getDay() and date.getMonth() and \ rptOptions.fullDate == reportOptions.Yes: fulldate= date.getDate() - elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes: + elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes: fulldate= "%s %s" % (date.getMonth(), date.getYear()) else: fulldate= "" elif rptOptions.blankDate == reportOptions.Yes: diff --git a/gramps2/src/plugins/DetDescendantReport.py b/gramps2/src/plugins/DetDescendantReport.py index 95445bbe8..60969aa79 100644 --- a/gramps2/src/plugins/DetDescendantReport.py +++ b/gramps2/src/plugins/DetDescendantReport.py @@ -336,10 +336,10 @@ class DetDescendantReport(Report): place= "_____________" if date.getDate() != "": - if date.getDay() > 0 and date.getMonth() > 0 and \ + if date.getDay() and date.getMonth() and \ rptOptions.fullDate == reportOptions.Yes: fulldate= date.getDate() - elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes: + elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes: fulldate= "%s %s" % (date.getMonth(), date.getYear()) else: fulldate= "" elif rptOptions.blankDate == reportOptions.Yes: