Taragolis commented on code in PR #37138:
URL: https://github.com/apache/airflow/pull/37138#discussion_r1475075880


##########
airflow/providers/google/common/hooks/base_google.py:
##########
@@ -670,7 +670,7 @@ async def acquire_access_token(self, timeout: int = 10) -> 
None:
 
         self.access_token = cast(str, self.credentials.token)
         self.access_token_duration = 3600
-        self.access_token_acquired_at = datetime.datetime.utcnow()
+        self.access_token_acquired_at = 
datetime.datetime.now(tz=datetime.timezone.utc)

Review Comment:
   @m1racoli as original autor of this code could you tell what kind of object 
should be here datetime tz-naive or datetime tz-aware or doesn't matter? And 
I'm curious what the attribute purpouse I can't find usage in Airflow providers 
codebase



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to