Skip to content

Commit

Permalink
Fix: timedelta values were not JSON serialized properly (#3463)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
arikfr authored and jezdez committed Feb 19, 2019
1 parent 8fc2ecf commit ebef0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def default(self, o):
elif isinstance(o, (datetime.timedelta, uuid.UUID)):
result = str(o)
# See "Date Time String Format" in the ECMA-262 specification.
if isinstance(o, datetime.datetime):
elif isinstance(o, datetime.datetime):
result = o.isoformat()
if o.microsecond:
result = result[:23] + result[26:]
Expand Down

0 comments on commit ebef0ef

Please sign in to comment.