SameerMesiah97 commented on code in PR #66856:
URL: https://github.com/apache/airflow/pull/66856#discussion_r3238477769
##########
providers/opensearch/src/airflow/providers/opensearch/log/os_json_formatter.py:
##########
@@ -32,9 +30,15 @@ class OpensearchJSONFormatter(JSONFormatter):
def formatTime(self, record, datefmt=None):
"""Return the creation time of the LogRecord in ISO 8601 date/time
format in the local time zone."""
- # TODO: Use airflow.utils.timezone.from_timestamp(record.created,
tz="local")
- # as soon as min Airflow 2.9.0
Review Comment:
I am not sure why you are importing `timezone` from task sdk when the
intention was to use `timezone` from `airflow.utils`.
--
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]