dstandish commented on code in PR #24284:
URL: https://github.com/apache/airflow/pull/24284#discussion_r891629900
##########
airflow/utils/json.py:
##########
@@ -45,7 +45,7 @@ def __init__(self, *args, **kwargs):
def _default(obj):
"""Convert dates and numpy objects in a json serializable format."""
if isinstance(obj, datetime):
- return obj.strftime('%Y-%m-%dT%H:%M:%SZ')
+ return obj.isoformat()
Review Comment:
But the original code also stripped out sub-second precision and isoformat
includes micros, it appears. Don't know whether that matters here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]