Skip to content

Commit bccfd78

Browse files
authored
Merge pull request #965 from joeseakinsarup/patch-1
Fix error compare timezone unaware and timezone aware datatimes
2 parents 2a778c5 + 7f26f69 commit bccfd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

office365/runtime/auth/authentication_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, url, environment=None, allow_ntlm=False, browser_mode=False):
4747
self._environment = environment
4848
self._allow_ntlm = allow_ntlm
4949
self._browser_mode = browser_mode
50-
self._token_expires = datetime.max
50+
self._token_expires = datetime.max.replace(tzinfo=timezone.utc)
5151

5252
def with_client_certificate(
5353
self,

0 commit comments

Comments
 (0)