Browse files

Merge pull request #1447 from evansd/patch-1

Use `usegmt` flag in formatdate
  • Loading branch information...
2 parents 0cac4fb + 8a160d5 commit db0779dbe1da8cff96f8fc9e92ce269a5cf1c1c1 @timgraham timgraham committed Aug 9, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 django/utils/http.py
View
3 django/utils/http.py
@@ -109,8 +109,7 @@ def http_date(epoch_seconds=None):
Outputs a string in the format 'Wdy, DD Mon YYYY HH:MM:SS GMT'.
"""
- rfcdate = formatdate(epoch_seconds)
- return '%s GMT' % rfcdate[:25]
+ return formatdate(epoch_seconds, usegmt=True)
def parse_http_date(date):
"""

0 comments on commit db0779d

Please sign in to comment.