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

Time data does not match format #289

Open
maciekkrysz opened this issue Dec 2, 2021 · 2 comments
Open

Time data does not match format #289

maciekkrysz opened this issue Dec 2, 2021 · 2 comments

Comments

@maciekkrysz
Copy link

Is there any option to handle datetime with this format?
"time data 2021-12-02T14:15:13.277878+00:00 does not match format yyyy-mm-ddThh:mm:ss(\\.s+)?Z"

I got this saml response generated by flask-saml2 library
<saml:Conditions NotBefore="2021-11-22T13:50:36.332054+00:00" NotOnOrAfter="2021-11-22T14:08:36.332054+00:00">

@pitbulk
Copy link
Contributor

pitbulk commented Jan 11, 2022

Format of accepted datetimes are defined at:
https://github.com/onelogin/python3-saml/blob/master/src/onelogin/saml2/utils.py#L69

akx added a commit to akx/python3-saml that referenced this issue Jan 31, 2022
@pitbulk
Copy link
Contributor

pitbulk commented Dec 25, 2022

Hi @akx

I saw your commit akx@e0241ab

Can you include it in a way that we reuse the compat.py file and we use calendar when available so we don't break compatibility with python 2.7?

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

No branches or pull requests

2 participants