Skip to content

Commit

Permalink
Parse UTC for 'Retry-After' redirect handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Aug 29, 2020
1 parent cf6ab7a commit 5a21018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dummyserver/handlers.py
Expand Up @@ -321,7 +321,7 @@ def redirect_after(self, request):
date = request.params.get("date")
if date:
retry_after = str(
httputil.format_timestamp(datetime.fromtimestamp(float(date)))
httputil.format_timestamp(datetime.utcfromtimestamp(float(date)))
)
else:
retry_after = "1"
Expand Down

0 comments on commit 5a21018

Please sign in to comment.