Open attachment 98549 [details] from bug 78333, a DOCX, save it back to DOCX format, and try opening it in Word. => Word can't open the file cleanly. If one: - unzips the saved DOCX, - executes the following command (can be done in Linux/Cygwin, needs xmllint installed): find . \( -name "*.xml" -o -name "*.rels" \) -type f -exec xmllint --output '{}' --format '{}' \; - rezips the files with DOCX extension, Word points to line 552 in word/document.xml, which is this line: <w:date w:fullDate=" 2012./2013.T00:00:00Z"> The document has a date picker content control with the value: " 2012./2013." Based on section 17.5.2.7 date (Date Structured Document Tag) of the OOXML specification, fullDate should be written as ST_DateTime (xsd:dateTime) type. However, when looking at the original document, it simply has <w:date> without an attribute, which makes more sense when the value isn't a valid date. This is a regression/implementation error from the following commit in 7.4, and from its backport in 7.3: https://git.libreoffice.org/core/commit/a4432eb0946c0bc775b3d30b634bef5d66544f8d author Vasily Melenchuk <vasily.melenchuk@cib.de> Wed Nov 24 14:50:12 2021 +0300 committer Thorsten Behrens <thorsten.behrens@allotropia.de> Tue Dec 21 23:23:51 2021 +0100 tdf#104823: support for sdt plain text fields
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0bab39b2bde5b2b692ce0227c0aa160ffe1be83c tdf#168988 docx export: ensure valid ISO8601 FormDate fullDate It will be available in 26.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-26-2": https://git.libreoffice.org/core/commit/05a2bdfc892f903cfa316f23562bccd179125f4d tdf#168988 docx export: ensure valid ISO8601 FormDate fullDate It will be available in 26.2.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.