[Libreoffice-commits] core.git: xmlsecurity/source
Tor Lillqvist
tml at collabora.com
Mon Nov 14 10:08:58 UTC 2016
xmlsecurity/source/helper/xsecctl.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 757a60d01dd152aadab2ba3c8224252481ce8a88
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Nov 14 11:57:52 2016 +0200
xsd:dateTime must use period as decimal separator, not comma
Change-Id: I8ed5242a4337da2ec1568d92bebfdad4915e6128
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index b4241e4..46de812 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
@@ -835,6 +835,9 @@ void XSecController::exportSignature(
else
{
buffer = utl::toISO8601(signatureInfo.stDateTime);
+ // xsd:dateTime must use period as separator for fractional seconds, while
+ // utl::toISO8601 uses comma (as allowed, and even recommended, by ISO8601).
+ buffer.replace(',', '.');
}
sDate = buffer.makeStringAndClear();
xDocumentHandler->characters( sDate );
More information about the Libreoffice-commits
mailing list