Skip to content

Commit

Permalink
Fixed issue #1053
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Casanovas committed Feb 28, 2024
1 parent c2bf576 commit 0e5cc0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions O365/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ def __init__(self, *, protocol_url: Optional[str] = None,
# get_localzone() from tzlocal will try to get the system local timezone and if not will return UTC
self._timezone: ZoneInfo = get_localzone()

if timezone:
self.timezone = timezone # property setter will convert this timezone to ZoneInfo if a string is provided

self.max_top_value: int = 500 # Max $top parameter value

# define any keyword that can be different in this protocol
# for example, attachments OData type differs between Outlook
# rest api and graph: (graph = #microsoft.graph.fileAttachment and
# outlook = #Microsoft.OutlookServices.FileAttachment')
self.keyword_data_store: dict = {}

self.max_top_value: int = 500 # Max $top parameter value

if timezone:
self.timezone = timezone # property setter will convert this timezone to ZoneInfo if a string is provided

@property
def timezone(self):
return self._timezone
Expand Down

0 comments on commit 0e5cc0f

Please sign in to comment.