Skip to content

Commit

Permalink
Allow wrong format dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben1700 authored Aug 26, 2024
1 parent 3385763 commit 7a2e3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gestionatr/input/messages/Q1.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def fecha_desde(self):
fecha_desde = False
for integrador in self.integradores:
fecha_in_compt = datetime.strptime(
integrador.lectura_desde.fecha, '%Y-%m-%d'
integrador.lectura_desde.fecha[:20], '%Y-%m-%d'
)
if not fecha_desde or fecha_in_compt < fecha_desde:
fecha_desde = fecha_in_compt
Expand All @@ -175,7 +175,7 @@ def fecha_hasta(self):
fecha_hasta = False
for integrador in self.integradores:
fecha_fi_compt = datetime.strptime(
integrador.lectura_hasta.fecha, '%Y-%m-%d'
integrador.lectura_hasta.fecha[:20], '%Y-%m-%d'
)
if not fecha_hasta or fecha_fi_compt > fecha_hasta:
fecha_hasta = fecha_fi_compt
Expand Down

0 comments on commit 7a2e3c0

Please sign in to comment.