aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@scriptkitty.com>2012-12-30 01:07:17 -0800
committerAlec Warner <antarus@scriptkitty.com>2012-12-30 01:08:45 -0800
commit2779d06e6ac4ebf019080f934355fc94c5d59c48 (patch)
tree108dad30cecc1b2d000758578813eefa5b903ee0
parentDon't prefix urls with a scheme if they already have a scheme. (diff)
downloadpackages-3-2779d06e6ac4ebf019080f934355fc94c5d59c48.tar.gz
packages-3-2779d06e6ac4ebf019080f934355fc94c5d59c48.tar.bz2
packages-3-2779d06e6ac4ebf019080f934355fc94c5d59c48.zip
Change to GMT to meet RFC requirements and fix bug 430350
-rw-r--r--web/lib/headers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/headers.py b/web/lib/headers.py
index 5f7986a..8a5a389 100644
--- a/web/lib/headers.py
+++ b/web/lib/headers.py
@@ -12,7 +12,7 @@ def lastmodified_rightcontent(latest_entry):
def lastmodified_httpheader(latest_entry):
"""return a HTTP Last-Modified value of the latest entry"""
- fmt = '%a, %d %b %Y %H:%M:%S UTC'
+ fmt = '%a, %d %b %Y %H:%M:%S GMT'
return _lastmodified_strftime(fmt, latest_entry)
def lastmodified_rss(latest_entry):
@@ -33,6 +33,6 @@ def pageexpire_timestamp():
def httpheader_expires():
expire_ts = pageexpire_timestamp()
- return strftime('%a, %d %b %Y %H:%M:%S UTC', gmtime(expire_ts))
+ return strftime('%a, %d %b %Y %H:%M:%S GMT', gmtime(expire_ts))
# vim:ts=4 et ft=python: