add a check if the year is on two digits
This commit is contained in:
parent
0c27290d2a
commit
7cf060a5f6
1 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ class FrenchTransaction(Transaction):
|
|||
date = datetime.date(int(date[4:8]), int(date[2:4]), int(date[0:2]))
|
||||
elif '/' in date:
|
||||
date = datetime.date(*reversed([int(x) for x in date.split('/')]))
|
||||
if date.year < 100:
|
||||
date = date.replace(year=2000 + date.year)
|
||||
|
||||
self.date = date
|
||||
self.rdate = date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue