dirrao commented on code in PR #36363:
URL: https://github.com/apache/airflow/pull/36363#discussion_r1435235012
##########
airflow/providers/amazon/aws/hooks/s3.py:
##########
@@ -713,7 +713,9 @@ async def is_keys_unchanged_async(
}
if last_activity_time:
- inactivity_seconds = int((datetime.now() -
last_activity_time).total_seconds())
+ inactivity_seconds = int(
+ (datetime.now(last_activity_time.tzinfo) -
last_activity_time).total_seconds()
Review Comment:
I believe the last_activity_time initial value will come from the same
function 1st call. There is no harm in considering the tzinfo from the other
one. I am trying to understand 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]