File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7878from googleapiclient import errors
7979
8080# The unix time epoch starts at midnight 1970.
81- EPOCH = datetime .datetime . utcfromtimestamp ( 0 )
81+ EPOCH = datetime .datetime ( 1970 , 1 , 1 )
8282
8383# Map the names of the parameters in the JSON channel description to
8484# the parameter names we use in the Channel class.
Original file line number Diff line number Diff line change 4646LOGGER = logging .getLogger (__name__ )
4747
4848FILENAME = "google-api-python-client-discovery-doc.cache"
49- EPOCH = datetime .datetime . utcfromtimestamp ( 0 )
49+ EPOCH = datetime .datetime ( 1970 , 1 , 1 )
5050
5151
5252def _to_timestamp (date ):
Original file line number Diff line number Diff line change @@ -2193,7 +2193,7 @@ def _dummy_token(self):
21932193 client_id = "some_client_id"
21942194 client_secret = "cOuDdkfjxxnv+"
21952195 refresh_token = "1/0/a.df219fjls0"
2196- token_expiry = datetime .datetime .utcnow ( )
2196+ token_expiry = datetime .datetime .now ( datetime . timezone . utc )
21972197 user_agent = "refresh_checker/1.0"
21982198 return OAuth2Credentials (
21992199 access_token ,
You can’t perform that action at this time.
0 commit comments