add 'pubDate' for RSS feeds

This commit is contained in:
teddit 2021-01-30 15:23:26 +01:00
parent cf2fe7f9f1
commit bc0aff9481
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ module.exports = function() {
<title>${link.title}</title>
<author>${link.author}</author>
<created>${link.created}</created>
<pubDate>${new Date(link.created_utc*1000).toGMTString()}</pubDate>
<domain>${link.domain}</domain>
<id>${link.id}</id>
<thumbnail>${thumbnail}</thumbnail>

View File

@ -74,6 +74,7 @@ module.exports = function() {
<kind>${kind}</kind>
<subreddit>${post.subreddit}</subreddit>
<created>${post.created_utc}</created>
<pubDate>${new Date(post.created_utc*1000).toGMTString()}</pubDate>
<ups>${post.ups}</ups>
<link>${permalink}</link>
<edited>${post.edited}</edited>