mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
ef4a5d3315
* changed timedelta_isoformat in pydantic/json.py to produce ISO 8601 compliant string even for negative values * added tests to verify correct serialization of negative time deltas Co-authored-by: Josef <sorry.i-keep@it.private>
204 B
204 B
Fix incorrect deserialization of python timedelta object to ISO 8601 for negative time deltas. Minus was serialized in incorrect place ("P-1DT23H59M59.888735S" instead of correct "-P1DT23H59M59.888735S")