From 757a60d01dd152aadab2ba3c8224252481ce8a88 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 14 Nov 2016 11:57:52 +0200 Subject: xsd:dateTime must use period as decimal separator, not comma Change-Id: I8ed5242a4337da2ec1568d92bebfdad4915e6128 --- xmlsecurity/source/helper/xsecctl.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmlsecurity/source/helper/xsecctl.cxx') diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index b4241e4de152..46de8124affe 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 ); -- cgit