After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731964 - 'xs:dateTime': 24:00:00 not a valid value?
'xs:dateTime': 24:00:00 not a valid value?
Status: RESOLVED DUPLICATE of bug 633268
Product: libxml2
Classification: Platform
Component: xmlschema
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-20 13:20 UTC by Hermann Peifer
Modified: 2019-09-16 14:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hermann Peifer 2014-06-20 13:20:17 UTC
Schema validation with xmllint throws an error for 2014-05-31T24:00:00 (see the example below), although 24:00:00 seems to be a legal representation of midnight, according to http://www.w3.org/TR/xmlschema-2/#dateTime.

Hermann


$ cat schema.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Date" type="xsd:dateTime"/>
</xsd:schema>
$
$ cat date.xml
<Date>2014-05-31T24:00:00</Date>
$
$ xmllint --version
xmllint: using libxml version 20901-GITv2.9.1-73-g41586ca
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
$
$ xmllint --noout --schema schema.xsd date.xml
date.xml:1: element Date: Schemas validity error : Element 'Date': '2014-05-31T24:00:00' is not a valid value of the atomic type 'xs:dateTime'.
date.xml fails to validate
Comment 1 Nick Wellnhofer 2019-09-16 14:29:35 UTC

*** This bug has been marked as a duplicate of bug 633268 ***