Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zeep fails to parse 24:00:00 as xsd:time (ValueError: hour must be in 0..23) #1401

Open
Trolldemorted opened this issue Dec 19, 2023 · 0 comments

Comments

@Trolldemorted
Copy link

Zeep uses isodate to parse xsd:time:

def pythonvalue(self, value):
return isodate.parse_time(value)

isodate does not like 24:00:00 and throws ValueError: hour must be in 0..23, but 24:00:00 should be a valid value of xsd:time: http://www.datypic.com/sc/xsd/t-xsd_time.html

We are using zeep 4.2.1 and isodate 0.6.1.

Our (stupid) workaround was to replace xsd:time with xsd:string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant