diff --git a/src/Filters/Rules/Event/_HasData.py b/src/Filters/Rules/Event/_HasData.py index 26f840574..3d72cd212 100644 --- a/src/Filters/Rules/Event/_HasData.py +++ b/src/Filters/Rules/Event/_HasData.py @@ -60,7 +60,7 @@ class HasData(Rule): self.event_type.set_from_xml_str(self.list[0]) if self.date: - self.date = parser.parse(self.date) + self.date = DateHandler.parser.parse(self.date) def apply(self, db, event): if self.event_type and event.get_type() != self.event_type: diff --git a/src/Filters/Rules/Person/_HasBirth.py b/src/Filters/Rules/Person/_HasBirth.py index c4e0e9448..cf542c03a 100644 --- a/src/Filters/Rules/Person/_HasBirth.py +++ b/src/Filters/Rules/Person/_HasBirth.py @@ -52,7 +52,7 @@ class HasBirth(Rule): def prepare(self, db): if self.list[0]: - self.date = parser.parse(self.list[0]) + self.date = DateHandler.parser.parse(self.list[0]) else: self.date = None diff --git a/src/Filters/Rules/Person/_HasDeath.py b/src/Filters/Rules/Person/_HasDeath.py index 5a50839d9..1d503562f 100644 --- a/src/Filters/Rules/Person/_HasDeath.py +++ b/src/Filters/Rules/Person/_HasDeath.py @@ -52,7 +52,7 @@ class HasDeath(Rule): def prepare(self, db): if self.list[0]: - self.date = parser.parse(self.list[0]) + self.date = DateHandler.parser.parse(self.list[0]) else: self.date = None diff --git a/src/Filters/Rules/Person/_HasFamilyEvent.py b/src/Filters/Rules/Person/_HasFamilyEvent.py index 748c9a5bd..e213ff60b 100644 --- a/src/Filters/Rules/Person/_HasFamilyEvent.py +++ b/src/Filters/Rules/Person/_HasFamilyEvent.py @@ -58,7 +58,7 @@ class HasFamilyEvent(Rule): self.date = None try: if self.list[1]: - self.date = parser.parse(self.list[1]) + self.date = DateHandler.parser.parse(self.list[1]) except: pass