diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-11-14 11:57:52 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-11-14 12:05:59 +0200 |
commit | 757a60d01dd152aadab2ba3c8224252481ce8a88 (patch) | |
tree | a32a8679f100f961cb0105967071d08413dd5267 /xmlsecurity/source/helper/xsecctl.cxx | |
parent | 69581b948de89db188197bce3a55d7eb07229f8e (diff) |
xsd:dateTime must use period as decimal separator, not comma
Change-Id: I8ed5242a4337da2ec1568d92bebfdad4915e6128
Diffstat (limited to 'xmlsecurity/source/helper/xsecctl.cxx')
-rw-r--r-- | xmlsecurity/source/helper/xsecctl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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 ); |