mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2026-01-06 12:21:30 +00:00
We are seeing occurrences of inconsistency in the timestamps returned by office365.sharepoint when fetching created and modified dates. Furthermore, in future versions of this library, a datetime object will be returned rather than a string. ## Changes - This adds logic to guarantee SharePoint dates will be properly formatted as ISO, regardless of the format provided by the sharepoint library. - Bumps timestamp format output to include timezone offset (as we do with others) ## Testing Unit test added to validate this datetime handling across various formats. --------- Co-authored-by: David Potter <potterdavidm@gmail.com>
98 lines
3.4 KiB
JSON
98 lines
3.4 KiB
JSON
[
|
|
{
|
|
"element_id": "c37e2cb941a2e20a9f728fbea5f9e400",
|
|
"metadata": {
|
|
"data_source": {
|
|
"date_created": "2023-06-16T05:05:05+00:00",
|
|
"date_modified": "2023-06-16T05:05:05+00:00",
|
|
"record_locator": {
|
|
"server_path": "/Shared Documents/stanley-cups.xlsx",
|
|
"site_url": "https://unstructuredio.sharepoint.com"
|
|
},
|
|
"url": "https://unstructuredio.sharepoint.com/Shared Documents/stanley-cups.xlsx?d=wb9956a338079432191ea609def07394d",
|
|
"version": "1"
|
|
},
|
|
"filename": "stanley-cups.xlsx",
|
|
"filetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"page_name": "Stanley Cups",
|
|
"page_number": 1
|
|
},
|
|
"text": "Stanley Cups",
|
|
"type": "Title"
|
|
},
|
|
{
|
|
"element_id": "c00fc0e5ac303c40f9089791e5e485b1",
|
|
"metadata": {
|
|
"data_source": {
|
|
"date_created": "2023-06-16T05:05:05+00:00",
|
|
"date_modified": "2023-06-16T05:05:05+00:00",
|
|
"record_locator": {
|
|
"server_path": "/Shared Documents/stanley-cups.xlsx",
|
|
"site_url": "https://unstructuredio.sharepoint.com"
|
|
},
|
|
"url": "https://unstructuredio.sharepoint.com/Shared Documents/stanley-cups.xlsx?d=wb9956a338079432191ea609def07394d",
|
|
"version": "1"
|
|
},
|
|
"filename": "stanley-cups.xlsx",
|
|
"filetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"page_name": "Stanley Cups",
|
|
"page_number": 1
|
|
},
|
|
"text": "\n\n\nTeam\nLocation\nStanley Cups\n\n\nBlues\nSTL\n1\n\n\nFlyers\nPHI\n2\n\n\nMaple Leafs\nTOR\n13\n\n\n",
|
|
"type": "Table"
|
|
},
|
|
{
|
|
"element_id": "98656277bdadc9ef7d1a9e1bc969579b",
|
|
"metadata": {
|
|
"data_source": {
|
|
"date_created": "2023-06-16T05:05:05+00:00",
|
|
"date_modified": "2023-06-16T05:05:05+00:00",
|
|
"record_locator": {
|
|
"server_path": "/Shared Documents/stanley-cups.xlsx",
|
|
"site_url": "https://unstructuredio.sharepoint.com"
|
|
},
|
|
"url": "https://unstructuredio.sharepoint.com/Shared Documents/stanley-cups.xlsx?d=wb9956a338079432191ea609def07394d",
|
|
"version": "1"
|
|
},
|
|
"filename": "stanley-cups.xlsx",
|
|
"filetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"page_name": "Stanley Cups Since 67",
|
|
"page_number": 2
|
|
},
|
|
"text": "Stanley Cups Since 67",
|
|
"type": "Title"
|
|
},
|
|
{
|
|
"element_id": "31421b5cd94fedb10dc82738503b4505",
|
|
"metadata": {
|
|
"data_source": {
|
|
"date_created": "2023-06-16T05:05:05+00:00",
|
|
"date_modified": "2023-06-16T05:05:05+00:00",
|
|
"record_locator": {
|
|
"server_path": "/Shared Documents/stanley-cups.xlsx",
|
|
"site_url": "https://unstructuredio.sharepoint.com"
|
|
},
|
|
"url": "https://unstructuredio.sharepoint.com/Shared Documents/stanley-cups.xlsx?d=wb9956a338079432191ea609def07394d",
|
|
"version": "1"
|
|
},
|
|
"filename": "stanley-cups.xlsx",
|
|
"filetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"page_name": "Stanley Cups Since 67",
|
|
"page_number": 2
|
|
},
|
|
"text": "\n\n\nTeam\nLocation\nStanley Cups\n\n\nBlues\nSTL\n1\n\n\nFlyers\nPHI\n2\n\n\nMaple Leafs\nTOR\n0\n\n\n",
|
|
"type": "Table"
|
|
}
|
|
] |