This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch odf-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 150358e458ae980130267808f21c8901c75e4539
Author: Jim Jagielski <[email protected]>
AuthorDate: Thu Oct 22 16:25:53 2026 -0400

    sfx2: don't write a bogus meta:print-date
---
 main/sfx2/source/doc/SfxDocumentMetaData.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/main/sfx2/source/doc/SfxDocumentMetaData.cxx 
b/main/sfx2/source/doc/SfxDocumentMetaData.cxx
index 1f9979faa6..e709b7eb93 100644
--- a/main/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/main/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -1018,6 +1018,10 @@ void SAL_CALL 
SfxDocumentMetaData::updateUserDefinedAndAttributes()
         updateElement("meta:hyperlink-behaviour");
     }
     attributes.clear();
+
+    if 
(!isValidDateTime(textToDateTimeDefault(getMetaText("meta:print-date")))) {
+        static_cast<void>(setMetaText("meta:print-date", ::rtl::OUString()));
+    }
 }
 
 // create empty DOM tree (XDocument)

Reply via email to