Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Remove usage of _UTCNOW
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Demaree committed Mar 24, 2016
1 parent c96c404 commit bffa989
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oauth2client/contrib/gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

from oauth2client._helpers import _from_bytes
from oauth2client import util
from oauth2client.client import _UTCNOW
from oauth2client.client import HttpAccessTokenRefreshError
from oauth2client.client import AssertionCredentials

Expand Down Expand Up @@ -138,7 +137,7 @@ def _refresh(self, http_request):
status=response.status)
self.access_token = token_content['access_token']
delta = datetime.timedelta(seconds=int(token_content['expires_in']))
self.token_expiry = delta + _UTCNOW()
self.token_expiry = delta + datetime.datetime.utcnow()
else:
if response.status == http_client.NOT_FOUND:
content += (' This can occur if a VM was created'
Expand Down

0 comments on commit bffa989

Please sign in to comment.