Skip to content

Commit

Permalink
[Chore] Fix datetime format for RSS feeds (#13624)
Browse files Browse the repository at this point in the history
* [Chore] Fix datetime format for RSS feeds

* finish quotes
  • Loading branch information
kodster28 authored Mar 26, 2024
1 parent 7950abe commit ad92dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/changelog.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<description>Updates to Cloudflare's {{$product}} product.</description>
<language>en-us</language>
<atom:link href="{{$atomLink}}" rel="self" />
<lastBuildDate>{{- index (index $changelogDataEntries 0) "publish_date" | time.Format "Monday, Jan 2, 2006" -}}</lastBuildDate>
<lastBuildDate>{{- index (index $changelogDataEntries 0) "publish_date" | time.Format "Mon, 02 Jan 2006 08:00:00 EST" -}}</lastBuildDate>
{{- range $changelogDataEntries -}}
{{- $entry := . -}}
{{- $link := "" -}}
Expand Down Expand Up @@ -53,7 +53,7 @@
<title>{{- $title -}}</title>
<link>{{- $link -}}</link>
<description>{{- $description -}}</description>
<pubDate>{{- .publish_date | time.Format "Monday, Jan 2, 2006" -}}</pubDate>
<pubDate>{{- .publish_date | time.Format "Mon, 02 Jan 2006 08:00:00 EST" -}}</pubDate>
</item>
{{- end -}}
</channel>
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/home.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<description>View updates to various Cloudflare products.</description>
<language>en-us</language>
<atom:link href="{{$atomLink}}" rel="self" />
<lastBuildDate>{{- index (index $changelogRendered 0) "publish_date" | time.Format "Monday, Jan 2, 2006" -}}</lastBuildDate>
<lastBuildDate>{{- index (index $changelogRendered 0) "publish_date" | time.Format "Mon, 02 Jan 2006 08:00:00 EST" -}}</lastBuildDate>
{{- range $changelogRendered -}}
{{- $entry := . -}}
{{- $link := "" -}}
Expand Down Expand Up @@ -48,7 +48,7 @@
<title>{{- $title -}}</title>
<link>{{ $link }}</link>
<description>{{- $description -}}</description>
<pubDate>{{ .publish_date | time.Format "Monday, Jan 2, 2006" }}</pubDate>
<pubDate>{{ .publish_date | time.Format "Mon, 02 Jan 2006 08:00:00 EST" }}</pubDate>
<product>{{- $product -}}</product>
</item>
{{- end -}}
Expand Down

0 comments on commit ad92dcc

Please sign in to comment.