python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

How can I insert an event in my calender using 365 toolkits ?

Open aspirant2018 opened this issue 1 year ago • 5 comments

Hey guys, I have created an agent using 365 toolkits to interact with my calender. the authentification and extracting events works fine. example: Capture d’écran 2024-06-07 à 14 36 08

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

aspirant2018 avatar Jun 07 '24 12:06 aspirant2018