Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit c6f171a

Browse files
committed
Yet another datetime bug
1 parent 84c9d0e commit c6f171a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/onedrivesdk/model/item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def created_date_time(self):
8989

9090
@created_date_time.setter
9191
def created_date_time(self, val):
92-
time_format = "%Y-%m-%dT%H:%M:%S.%f"
92+
time_format = "%Y-%m-%dT%H:%M:%S.%fZ"
9393
self._prop_dict["createdDateTime"] = val.strftime(time_format)
9494

9595
@property
@@ -203,7 +203,7 @@ def last_modified_date_time(self):
203203

204204
@last_modified_date_time.setter
205205
def last_modified_date_time(self, val):
206-
time_format = "%Y-%m-%dT%H:%M:%S.%f"
206+
time_format = "%Y-%m-%dT%H:%M:%S.%fZ"
207207
self._prop_dict["lastModifiedDateTime"] = val.strftime(time_format)
208208

209209
@property

0 commit comments

Comments
 (0)