From 6a15626c7837e999fbc725cad5bd6c1225154153 Mon Sep 17 00:00:00 2001 From: mango <287602771+mango-tart@users.noreply.github.com> Date: Mon, 25 May 2026 16:53:06 +1000 Subject: [PATCH] fix(uploader): TypeError between offset-native and offset-aware datetimes --- src/msgraph_core/tasks/large_file_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msgraph_core/tasks/large_file_upload.py b/src/msgraph_core/tasks/large_file_upload.py index 882b2ad6..eec31c9a 100644 --- a/src/msgraph_core/tasks/large_file_upload.py +++ b/src/msgraph_core/tasks/large_file_upload.py @@ -75,7 +75,7 @@ def upload_session_expired(self, upload_session: Optional[Parsable] = None) -> b if isinstance(expiry, str): then = datetime.strptime(expiry, "%Y-%m-%dT%H:%M:%S") elif isinstance(expiry, datetime): - then = expiry + then = expiry.replace(tzinfo=timezone.utc) else: raise ValueError("Expiry is not a string or datetime") interval = now - then