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(...)
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: