diff --git a/libs/community/langchain_community/document_loaders/base_o365.py b/libs/community/langchain_community/document_loaders/base_o365.py index b0d44e772403a..44002842bf25d 100644 --- a/libs/community/langchain_community/document_loaders/base_o365.py +++ b/libs/community/langchain_community/document_loaders/base_o365.py @@ -118,8 +118,8 @@ def _load_from_folder(self, folder: Folder) -> Iterable[Blob]: metadata_dict[file.name] = { "source": file.web_url, "mime_type": file.mime_type, - "created": file.created, - "modified": file.modified, + "created": str(file.created), + "modified": str(file.modified), "created_by": str(file.created_by), "modified_by": str(file.modified_by), "description": file.description,