nanterre: search birthdate with 2 digits years (#41052)

This commit is contained in:
Nicolas Roche 2020-03-26 14:28:14 +01:00
parent 5f48a1883d
commit a57da948c9
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ class PersonSearch(object):
year += 1900
else:
year += 2000
birthdate['year'] = str(year)
if birthdate['day']:
before = after = datetime.date(
int(birthdate['year']), int(birthdate['month']), int(birthdate['day']))