You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a DateTime object for 9999-12-31T24:00:00, the library raises an OverflowError: date value out of range. According to the XML Schema 1.1. Part 2: Datatypes specification, '24:00:00' is a valid representation for midnight at the end of a day. Therefore, the DateTime class should accept 9999-12-31T24:00:00. The expected behavior would likely be to create a DateTime object for 10000-01-01T00:00:00, as it is semantically equivalent to 9999-12-31T24:00:00.
The bug was detected while trying to validate a document using the xmlschema library. Though it seems to stem from the elementpath's DateTime data type.
Please let me know if you need any further information. Thank you for looking into this!
The text was updated successfully, but these errors were encountered:
Description
When attempting to create a DateTime object for 9999-12-31T24:00:00, the library raises an
OverflowError: date value out of range
. According to the XML Schema 1.1. Part 2: Datatypes specification, '24:00:00' is a valid representation for midnight at the end of a day. Therefore, the DateTime class should accept 9999-12-31T24:00:00. The expected behavior would likely be to create a DateTime object for 10000-01-01T00:00:00, as it is semantically equivalent to 9999-12-31T24:00:00.Steps to reproduce
Environment
Additional context
xmlschema
library. Though it seems to stem from theelementpath
's DateTime data type.Please let me know if you need any further information. Thank you for looking into this!
The text was updated successfully, but these errors were encountered: