Skip to content

Commit 0e5cc0f

Browse files
author
Alejandro Casanovas
committed
Fixed issue #1053
1 parent c2bf576 commit 0e5cc0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

O365/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@ def __init__(self, *, protocol_url: Optional[str] = None,
103103
# get_localzone() from tzlocal will try to get the system local timezone and if not will return UTC
104104
self._timezone: ZoneInfo = get_localzone()
105105

106-
if timezone:
107-
self.timezone = timezone # property setter will convert this timezone to ZoneInfo if a string is provided
108-
109-
self.max_top_value: int = 500 # Max $top parameter value
110-
111106
# define any keyword that can be different in this protocol
112107
# for example, attachments OData type differs between Outlook
113108
# rest api and graph: (graph = #microsoft.graph.fileAttachment and
114109
# outlook = #Microsoft.OutlookServices.FileAttachment')
115110
self.keyword_data_store: dict = {}
116111

112+
self.max_top_value: int = 500 # Max $top parameter value
113+
114+
if timezone:
115+
self.timezone = timezone # property setter will convert this timezone to ZoneInfo if a string is provided
116+
117117
@property
118118
def timezone(self):
119119
return self._timezone

0 commit comments

Comments
 (0)