diff --git a/CHANGELOG.md b/CHANGELOG.md index 53be692..8a349d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Lista de cambios +## v 0.3.1 [04-Ago-21] +--- +* Fix - Issue #2 + + ## v 0.3.0 [30-Jul-21] --- * Se agrega soporte para consultar por los últimos X días diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1 diff --git a/source/sat/util.py b/source/sat/util.py index e4f64dc..c3b87f2 100644 --- a/source/sat/util.py +++ b/source/sat/util.py @@ -129,9 +129,9 @@ def _to_date(str_date, end=False): try: parts = str_date.split('-') if end: - dt = datetime(parts[0], parts[1], parts[2], 23, 59, 59) + dt = datetime(int(parts[0]), int(parts[1]), int(parts[2]), 23, 59, 59) else: - dt = datetime(parts[0], parts[1], parts[2], 0, 0, 0) + dt = datetime(int(parts[0]), int(parts[1]), int(parts[2]), 0, 0, 0) except Exception as e: error = 'Fecha inválida'