Skip to content

Commit

Permalink
backport #371
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Sep 29, 2020
1 parent 9f16594 commit 52b3166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/translators/sql_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def _get_where_clause(self, entity_ids, from_date, to_date, fiware_sp=None,

def _parse_date(self, date):
try:
return dateutil.parser.isoparse(date.strip('\"'))
return dateutil.parser.isoparse(date.strip('\"')).isoformat()
except Exception as e:
raise InvalidParameterValue(date, "**fromDate** or **toDate**")

Expand Down Expand Up @@ -764,7 +764,7 @@ def query(self,
self.cursor.execute(op)
except Exception as e:
# Reason 1: fiware_service_path column in legacy dbs.
logging.debug("{}".format(e))
logging.error("{}".format(e))
entities = []
else:
res = self.cursor.fetchall()
Expand Down

0 comments on commit 52b3166

Please sign in to comment.