Skip to content

Commit

Permalink
Fix date format in RSS builder views
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 12, 2023
1 parent a930045 commit 7117ea0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/views/events/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xml.rss :version => "2.0" do
@events.each do |event|
xml.item do
xml.title event.title
xml.pubDate event.created_at.to_s(:rfc822)
xml.pubDate event.created_at.to_fs(:rfc822)
xml.link event.html_url
xml.guid event.html_url
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/issues/all.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title issue.title
xml.description issue.body
xml.pubDate issue.created_at.to_s(:rfc822)
xml.pubDate issue.created_at.to_fs(:rfc822)
xml.link issue.html_url
xml.guid issue.html_url
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xml.rss :version => "2.0" do
@orgs.each do |org|
xml.item do
xml.title org.name
xml.pubDate org.created_at.to_s(:rfc822)
xml.pubDate org.created_at.to_fs(:rfc822)
xml.link org_url(org)
xml.guid org_url(org)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/packages/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title package.name
xml.description package.description
xml.pubDate package.created_at.to_s(:rfc822)
xml.pubDate package.created_at.to_fs(:rfc822)
xml.link package_url(package)
xml.guid package_url(package)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/repositories/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title repository.full_name
xml.description repository.description
xml.pubDate repository.created_at.to_s(:rfc822)
xml.pubDate repository.created_at.to_fs(:rfc822)
xml.link repository_url(repository)
xml.guid repository_url(repository)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/search/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xml.rss :version => "2.0" do
@search_results.each do |search_result|
xml.item do
xml.title search_result.title
xml.pubDate search_result.created_at.to_s(:rfc822)
xml.pubDate search_result.created_at.to_fs(:rfc822)
xml.link search_result.html_url
xml.guid search_result.html_url
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/versions/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title version.number
xml.description version.number
xml.pubDate version.created_at.to_s(:rfc822)
xml.pubDate version.created_at.to_fs(:rfc822)
xml.link package_version_url(package_id: version.package.id, id: version.id)
xml.guid package_version_url(package_id: version.package.id, id: version.id)
end
Expand Down

0 comments on commit 7117ea0

Please sign in to comment.