ashb commented on code in PR #24284:
URL: https://github.com/apache/airflow/pull/24284#discussion_r891498300


##########
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:
   I've just changed this (to fix tests) so that it uses the existing 
`is_naive` and `convert_to_utc` functions so it will always include a TZ.



-- 
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]

Reply via email to