python-o365
python-o365 copied to clipboard
How can I insert an event in my calender using 365 toolkits ?
Hey guys,
I have created an agent using 365 toolkits to interact with my calender. the authentification and extracting events works fine. example:
the result: I found an upcoming event in your calendar for June 2024:
Subject: testing_event
Start Date and Time: June 7, 2024, at 12:00 PM UTC
End Date and Time: June 7, 2024, at 12:05 PM UTC
If you need more information or assistance with this event, feel free to let me know! The problem occurs when I want to insert a new event that's when I got this error:
[/usr/local/lib/python3.10/dist-packages/O365/calendar.py](https://localhost:8080/#) in start(self, value)
1070 else:
1071 if not isinstance(value.tzinfo, ZoneInfo):
-> 1072 raise ValueError('TimeZone data must be set using ZoneInfo objects')
1073 self.__start = value
1074 if not self.end:
ValueError: TimeZone data must be set using ZoneInfo objects