We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb5c539 commit 1ee00ecCopy full SHA for 1ee00ec
flattentool/ODSReader.py
@@ -17,6 +17,7 @@
17
18
import re
19
from collections import OrderedDict
20
+from datetime import datetime
21
22
import odf.opendocument
23
from odf.table import Table, TableCell, TableRow
@@ -90,6 +91,8 @@ def readSheet(self, sheet):
90
91
r"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$", date_value
92
):
93
date_value += "Z"
94
+ elif re.match(r"^\d{4}-\d\d-\d\d$", date_value):
95
+ datetime.strptime(date_value, "%Y-%m-%d").isoformat()
96
arrCells[count] = date_value
97
else:
98
arrCells[count] = str(cell)
0 commit comments