vcl/source/gdi/pdfwriter_impl.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit eb46a8426f94b4bf03c2feead1d2f52da53d6635 Author: Xisco Fauli <[email protected]> AuthorDate: Fri Feb 20 15:55:42 2026 +0100 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Mon Feb 23 12:54:44 2026 +0100 tdf#167290: export CreationDate with DateTime format Otherwise, the validator fails with "The value of CreationDate entry from the document Info dictionary and its matching XMP property "xmp:CreateDate" are not equivalent (Info /CreationDate = D:20260220154049+01'00', XMP xmp:CreateDate = 2025-12-31T11:13:40.000+01) The call to osl_getDateTimeFromTimeValue was removed in commit 07ac61f2c67020ad2941462ea7081f06495bcb92 Author: Sarper Akdemir <[email protected]> Date: Mon Aug 28 11:16:34 2023 +0300 tdf#138792: PDF export: fix date of xmp:CreateDate for no apparent reason In libreoffice-26-2 and libreoffice-25-8 the test doesn't work because the verapdf validator is not implemented Change-Id: I4c6948769797a4e446239316de2857851b31565e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199886 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199908 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 45b01e1aed3d..4ae207e66691 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -574,6 +574,7 @@ void computeDocumentIdentifier(std::vector<sal_uInt8>& o_rIdentifier, osl_getSystemTime(&aGMT); osl_getLocalTimeFromSystemTime(&aGMT, &aTVal); + osl_getDateTimeFromTimeValue( &aTVal, &aDT ); OStringBuffer aCreationMetaDateString(64); // i59651: we fill the Metadata date string as well, if PDF/A is requested
