diff --git a/metrics/tools/dates.py b/metrics/tools/dates.py index abf40f48..10e07b40 100644 --- a/metrics/tools/dates.py +++ b/metrics/tools/dates.py @@ -1,4 +1,4 @@ -from datetime import date, datetime, timedelta +from datetime import datetime, timedelta DELTA = timedelta(days=1) @@ -6,14 +6,14 @@ def date_from_iso(value): if value is None: - return date.today() + return None return datetime_from_iso(value).date() def datetime_from_iso(value): if value is None: - return datetime.now() + return None return datetime.fromisoformat(value)