aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-11-12 21:26:12 +0100
committerMarkus Ullmann <jokey@gentoo.org>2007-11-12 21:26:12 +0100
commit8e79bb9a192702b45c72f2ab6b9e55aaf1917ae1 (patch)
tree23a120d60c9c25c5296885ad51d86728d143750c /web
parentFix feed error, wrong module (diff)
downloadpackages-8e79bb9a192702b45c72f2ab6b9e55aaf1917ae1.tar.gz
packages-8e79bb9a192702b45c72f2ab6b9e55aaf1917ae1.tar.bz2
packages-8e79bb9a192702b45c72f2ab6b9e55aaf1917ae1.zip
Add correct timestamp to feeds
Diffstat (limited to 'web')
-rw-r--r--web/templates/index.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/templates/index.xml b/web/templates/index.xml
index 0501ef2..f559fb1 100644
--- a/web/templates/index.xml
+++ b/web/templates/index.xml
@@ -7,6 +7,7 @@ def absurl(path=''):
return links.absurl(path, safeqs)
def relurl(path=''):
return links.relurl(path, safeqs)
+from datetime import datetime
?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:html="http://www.w3.org/1999/xhtml"
@@ -18,7 +19,7 @@ def relurl(path=''):
<generator url="http://packages.gentoo.org/">Gentoo Packages2</generator>
<link rel="alternate" href="${absurl(self)}" type="text/html"/>
<link rel="self" href="${absurl(pagerss)}" type="application/atom+xml"/>
- <updated>2007-09-15T05:53:56Z</updated>
+ <updated>${datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")}</updated>
<entry py:for="pkg in center_pkgs">
<title>${pkg.atom.cpvstr}</title>
@@ -28,7 +29,7 @@ def relurl(path=''):
<name>${pkg.meta.authorname} (${pkg.meta.authorid})</name>
<uri>${links.ciavc_link(pkg.meta.authorid)}</uri>
</author>
- <updated>2007-09-15T05:53:56Z</updated>
+ <updated>${pkg.meta.ebuildchange.strftime("%Y-%m-%dT%H:%M:%SZ")}</updated>
<summary type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">${HTML(pkg.meta.commitmsg)}</div></summary>
</entry>