changeset 532:c3c1171679de 2.0.0b1

prepare: Fix the RSS template.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 29 Jul 2015 08:58:51 -0700
parents 63ae5eae90ca
children c24aaaf59500
files piecrust/resources/prepare/rss.html
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/resources/prepare/rss.html	Wed Jul 29 08:58:41 2015 -0700
+++ b/piecrust/resources/prepare/rss.html	Wed Jul 29 08:58:51 2015 -0700
@@ -23,8 +23,8 @@
         {% else %}
         <description>Latest news from {{site.title}}</description>
         {% endif %}
-        <lastBuildDate>{{now|date("r")}}</lastBuildDate>
-        <pubDate>{{now|date("r")}}</pubDate>
+        <lastBuildDate>{{now|atomdate}}</lastBuildDate>
+        <pubDate>{{now|atomdate}}</pubDate>
         <generator>PieCrust {{piecrust.version}}</generator>
         {% if page.language %}<language>{{page.language}}</language>{% endif %}
         {% for c in page.categories %}
@@ -46,7 +46,7 @@
             {% for t in post.tags %}
             <category>{{t}}</category>
             {% endfor %}
-            <pubDate>{{post.timestamp|date("r")}}</pubDate>
+            <pubDate>{{post.timestamp|atomdate}}</pubDate>
             <guid>{{post.url}}</guid>
             <description>{{post.content}}
             {% if post.has_more and page.read_more_text %}