git: 4b2bba727c - main - RSS feed: Change pubdate to conform RSS 822

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=4b2bba727c148ddbe9f1933488ff82fa6310c6bf

commit 4b2bba727c148ddbe9f1933488ff82fa6310c6bf
Author:     Minsoo Choo <[email protected]>
AuthorDate: 2023-07-22 07:22:48 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-07-22 07:24:47 +0000

    RSS feed: Change pubdate to conform RSS 822
    
    PR:                     271164
    Differential Revision:  https://reviews.freebsd.org/D41097
---
 website/themes/beastie/layouts/news/news.rss.xml         | 2 +-
 website/themes/beastie/layouts/press/press.rss.xml       | 2 +-
 website/themes/beastie/layouts/security/security.rss.xml | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/website/themes/beastie/layouts/news/news.rss.xml b/website/themes/beastie/layouts/news/news.rss.xml
index f109d6ca67..fa369c9fa2 100644
--- a/website/themes/beastie/layouts/news/news.rss.xml
+++ b/website/themes/beastie/layouts/news/news.rss.xml
@@ -43,7 +43,7 @@
               {{ end }}
               <link>{{ absLangURL ($.Site.BaseURL) }}news/newsflash/#{{ dateFormat "2006-01-02" .date }}:{{ $newsDayCounter }}</link>
               <guid>{{ absLangURL ($.Site.BaseURL) }}news/newsflash/#{{ dateFormat "2006-01-02" .date }}:{{ $newsDayCounter }}</guid>
-              <pubDate>{{ dateFormat "2006-01-02" .date }}</pubDate>
+              <pubDate>{{ dateFormat "02 Jan 06 15:04 UTC" .date }}</pubDate>
             </item>
             {{ $newsCounter = add $newsCounter 1 }}
             {{ $newsDayPrev = $newsDayCur }}
diff --git a/website/themes/beastie/layouts/press/press.rss.xml b/website/themes/beastie/layouts/press/press.rss.xml
index 660c49652d..f21b03d89f 100644
--- a/website/themes/beastie/layouts/press/press.rss.xml
+++ b/website/themes/beastie/layouts/press/press.rss.xml
@@ -39,7 +39,7 @@
             {{ end }}
               <link>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</link>
               <guid>{{ absLangURL ($.Site.BaseURL) }}press/#{{ dateFormat "2006-01" .date }}:{{ $pressMonthCounter }}</guid>
-              <pubDate>{{ dateFormat "2006-01-02" .date }}</pubDate>
+              <pubDate>{{ dateFormat "02 Jan 06 15:04 UTC" .date }}</pubDate>
             </item>
           {{ $pressMonthPrev = $pressMonthCur }}
         {{ end }}
diff --git a/website/themes/beastie/layouts/security/security.rss.xml b/website/themes/beastie/layouts/security/security.rss.xml
index bace49147d..8ca772180f 100644
--- a/website/themes/beastie/layouts/security/security.rss.xml
+++ b/website/themes/beastie/layouts/security/security.rss.xml
@@ -34,7 +34,7 @@
             <title>{{ .name }}</title>
             <link>{{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc</link>
             <guid>{{ absLangURL ($.Site.BaseURL) }}/security/advisories/{{ .name }}.asc</guid>
-            <pubDate>{{ .date }}</pubDate>
+            <pubDate>{{ dateFormat "02 Jan 06 15:04 UTC" .date }}</pubDate>
           </item>
           {{ $advisoriesCounter = add $advisoriesCounter 1 }}
         {{ end }}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.