diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-09 12:18:56 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-09 12:18:56 -0700 |
| commit | db0779dbe1da8cff96f8fc9e92ce269a5cf1c1c1 (patch) | |
| tree | dc97f0423a5b8225a05b73bddccf921fbd8d365b | |
| parent | 0cac4fbf699bb6a3de5f4a48c6e047a4dc6c2df7 (diff) | |
| parent | 8a160d5de1763614ab1a86107e779b0afd151ade (diff) | |
Merge pull request #1447 from evansd/patch-1
Use `usegmt` flag in formatdate
| -rw-r--r-- | django/utils/http.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/http.py b/django/utils/http.py index 4647d89847..e397acad5b 100644 --- a/django/utils/http.py +++ b/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): """ |
