GNOME Bugzilla – Bug 731964
'xs:dateTime': 24:00:00 not a valid value?
Last modified: 2019-09-16 14:29:35 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
*** This bug has been marked as a duplicate of bug 633268 ***