Fix a wrong operator bug in the web calendar report

This commit is contained in:
Jingxuan He
2023-05-14 22:27:59 +01:00
committed by Nick Hall
parent 2da93aad1f
commit 9e81014fc6
+1 -1
View File
@@ -1307,7 +1307,7 @@ class WebCalReport(Report):
age_at_death = age_at_death.format(dlocale=self.rlocale)
# determine birthday information???
if (self.birthday and birth_date is not Date()
if (self.birthday and birth_date != Date()
and birth_date.is_valid()):
birth_date = gregorian(birth_date)