Fix a wrong operator bug in the web calendar report

This commit is contained in:
Jingxuan He 2022-06-15 16:38:17 +02:00 committed by Nick Hall
parent 2da93aad1f
commit 9e81014fc6

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)