Rails 7: use to_fs(:rfc822) for RSS pubDate (to_s(:format) no longer accepts a format in Rails 7.1+)

This commit is contained in:
rulingcom committed 2026-10-14 15:53:57 +08:00
1 parent aa4e132bb8
commit 60b08d4773
1 file changed
+1 -1
@@ -8,7 +8,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title announcement.title
xml.description announcement.subtitle
xml.pubDate announcement.created_at.to_s(:rfc822)
xml.pubDate announcement.created_at.to_fs(:rfc822)
xml.link page_for_bulletin(announcement)
end
end