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

Commit 84c9d0e

Browse files
committed
Another template bugfix
1 parent 14bfd5d commit 84c9d0e

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
@@ -83,7 +83,7 @@ def created_date_time(self):
8383
"""
8484
if "createdDateTime" in self._prop_dict:
8585
time_format = "%Y-%m-%dT%H:%M:%S.%f"
86-
return datetime.strptime(self._prop_dict["createdDateTime"], time_format)
86+
return datetime.strptime(self._prop_dict["createdDateTime"].replace("Z",""), time_format)
8787
else:
8888
return None
8989

@@ -197,7 +197,7 @@ def last_modified_date_time(self):
197197
"""
198198
if "lastModifiedDateTime" in self._prop_dict:
199199
time_format = "%Y-%m-%dT%H:%M:%S.%f"
200-
return datetime.strptime(self._prop_dict["lastModifiedDateTime"], time_format)
200+
return datetime.strptime(self._prop_dict["lastModifiedDateTime"].replace("Z",""), time_format)
201201
else:
202202
return None
203203

0 commit comments

Comments
 (0)