Merge pull request #1447 from evansd/patch-1

Use `usegmt` flag in formatdate
This commit is contained in:
Tim Graham 2013-08-09 12:18:56 -07:00
commit db0779dbe1
1 changed files with 1 additions and 2 deletions

View File

@ -109,8 +109,7 @@ def http_date(epoch_seconds=None):
Outputs a string in the format 'Wdy, DD Mon YYYY HH:MM:SS GMT'. Outputs a string in the format 'Wdy, DD Mon YYYY HH:MM:SS GMT'.
""" """
rfcdate = formatdate(epoch_seconds) return formatdate(epoch_seconds, usegmt=True)
return '%s GMT' % rfcdate[:25]
def parse_http_date(date): def parse_http_date(date):
""" """