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

Signing in fails if locale.LC_TIME is set to a non-English language #122

Closed
cft1385 opened this issue Apr 5, 2022 · 0 comments · Fixed by #127
Closed

Signing in fails if locale.LC_TIME is set to a non-English language #122

cft1385 opened this issue Apr 5, 2022 · 0 comments · Fixed by #127

Comments

@cft1385
Copy link

cft1385 commented Apr 5, 2022

In the process_challenge function, there is a call to strftime that depends on the current locale. If it is not English, AWS will respond with this error:

TIMESTAMP format should be EEE MMM d HH:mm:ss z yyyy in english

The problem can be reproduced like this:

locale.setlocale(locale.LC_TIME, "nb_NO.utf-8")
u = Cognito(...)
u.authenticate(...)
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

Successfully merging a pull request may close this issue.

1 participant