Skip to content

Commit 52b3166

Browse files
committed
backport #371
1 parent 9f16594 commit 52b3166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/translators/sql_translator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def _get_where_clause(self, entity_ids, from_date, to_date, fiware_sp=None,
507507

508508
def _parse_date(self, date):
509509
try:
510-
return dateutil.parser.isoparse(date.strip('\"'))
510+
return dateutil.parser.isoparse(date.strip('\"')).isoformat()
511511
except Exception as e:
512512
raise InvalidParameterValue(date, "**fromDate** or **toDate**")
513513

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

0 commit comments

Comments
 (0)