Gentoo Archives: gentoo-commits

From: Alec Warner <antarus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] packages:master commit in: web/lib/
Date: Sun, 30 Dec 2012 09:04:53
Message-Id: 1356858525.2779d06e6ac4ebf019080f934355fc94c5d59c48.antarus@gentoo
1 commit: 2779d06e6ac4ebf019080f934355fc94c5d59c48
2 Author: Alec Warner <antarus <AT> scriptkitty <DOT> com>
3 AuthorDate: Sun Dec 30 09:07:17 2012 +0000
4 Commit: Alec Warner <antarus <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 30 09:08:45 2012 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=packages.git;a=commit;h=2779d06e
7
8 Change to GMT to meet RFC requirements and fix bug 430350
9
10 ---
11 web/lib/headers.py | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/web/lib/headers.py b/web/lib/headers.py
15 index 5f7986a..8a5a389 100644
16 --- a/web/lib/headers.py
17 +++ b/web/lib/headers.py
18 @@ -12,7 +12,7 @@ def lastmodified_rightcontent(latest_entry):
19
20 def lastmodified_httpheader(latest_entry):
21 """return a HTTP Last-Modified value of the latest entry"""
22 - fmt = '%a, %d %b %Y %H:%M:%S UTC'
23 + fmt = '%a, %d %b %Y %H:%M:%S GMT'
24 return _lastmodified_strftime(fmt, latest_entry)
25
26 def lastmodified_rss(latest_entry):
27 @@ -33,6 +33,6 @@ def pageexpire_timestamp():
28
29 def httpheader_expires():
30 expire_ts = pageexpire_timestamp()
31 - return strftime('%a, %d %b %Y %H:%M:%S UTC', gmtime(expire_ts))
32 + return strftime('%a, %d %b %Y %H:%M:%S GMT', gmtime(expire_ts))
33
34 # vim:ts=4 et ft=python: