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
{{ message }}
Repository navigation
Negative xsd:duration decoded as days instead of seconds #1492
Duration.pythonvalue (src/zeep/xsd/types/builtins.py) decodes a negative xsd:duration with the wrong unit. isodate cannot parse a negative time component, so the code strips the minus, parses the positive duration, and negates it:
timedelta's first positional argument is days, not seconds. result.total_seconds() (a seconds count) is passed as days, so the result is off by a factor of 86400. PT-30S decodes to -30 days instead of -30 seconds.
Activity