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

日期格式 #3

Closed
luoruici opened this issue Jun 24, 2013 · 0 comments
Closed

日期格式 #3

luoruici opened this issue Jun 24, 2013 · 0 comments
Assignees
Labels

Comments

@luoruici
Copy link

签名内容时的日期必须是RFC 1123的格式
__do_http_request方法里:

dt = datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')

那么对于不同的Locale生成的字符串不相同:

一, 24  6 2013 06:25:37 GMT

于是请求签名失败了

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

No branches or pull requests

2 participants