Add UTC timestamps to the rss publication dates.

Without them, QuiteRSS was inferring the local time zone, which
changed with daylight savings time, which made all posts appear
as new even though the response from the server hadn't changed.
This commit is contained in:
voussoir 2021-03-29 22:51:35 -07:00
parent e2e819427c
commit 886e88758a
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -465,7 +465,7 @@ def write_atom():
<id>{{article.publication_id}}</id> <id>{{article.publication_id}}</id>
<title>{{article.title|e}}</title> <title>{{article.title|e}}</title>
<link rel="alternate" href="https://voussoir.net/writing/{{article.web_path}}"/> <link rel="alternate" href="https://voussoir.net/writing/{{article.web_path}}"/>
<updated>{{article.date}}</updated> <updated>{{article.date}}T00:00:00Z</updated>
<content type="html"> <content type="html">
<![CDATA[ <![CDATA[
{{article.soup.article}} {{article.soup.article}}
@ -493,7 +493,7 @@ def write_rss():
<title>{{article.title|e}}</title> <title>{{article.title|e}}</title>
<guid isPermalink="false">{{article.publication_id}}</guid> <guid isPermalink="false">{{article.publication_id}}</guid>
<link>https://voussoir.net/writing/{{article.web_path}}</link> <link>https://voussoir.net/writing/{{article.web_path}}</link>
<pubDate>{{article.date}}</pubDate> <pubDate>{{article.date}}T00:00:00Z</pubDate>
<description> <description>
<![CDATA[ <![CDATA[
{{article.soup.article}} {{article.soup.article}}