Skip to content

Commit 7695a50

Browse files
committed
Fix calendar.create_event
1 parent 49daf38 commit 7695a50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

microsoftgraph/calendar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def create_event(
6868
subject (str): The text of the event's subject line.
6969
content (str): The body of the message associated with the event.
7070
start_datetime (datetime): A single point of time in a combined date and time representation ({date}T{time};
71-
start_timezone (datetime): Represents a time zone, for example, "Pacific Standard Time".
72-
end_datetime (str): A single point of time in a combined date and time representation ({date}T{time}; for
71+
start_timezone (str): Represents a time zone, for example, "Pacific Standard Time".
72+
end_datetime (datetime): A single point of time in a combined date and time representation ({date}T{time}; for
7373
end_timezone (str): Represents a time zone, for example, "Pacific Standard Time".
7474
location (str): The location of the event.
7575
calendar_id (str, optional): Calendar ID. Defaults to None.
@@ -81,7 +81,7 @@ def create_event(
8181
if isinstance(start_datetime, datetime):
8282
start_datetime = start_datetime.strftime("%Y-%m-%dT%H:%M:%S.%f")
8383
if isinstance(end_datetime, datetime):
84-
start_datetime = start_datetime.strftime("%Y-%m-%dT%H:%M:%S.%f")
84+
end_datetime = end_datetime.strftime("%Y-%m-%dT%H:%M:%S.%f")
8585

8686
body = {
8787
"subject": subject,

0 commit comments

Comments
 (0)