Replace to_s on TimeWithZone objects with to_formatted_s

This commit is contained in:
Tom Hughes 2022-01-10 08:38:45 +00:00
parent b676aa76c5
commit 6403515897
7 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ xml.rss("version" => "2.0",
xml.guid diary_entry_url(entry.user, entry, :only_path => false)
xml.description entry.body.to_html
xml.dc :creator, entry.user.display_name
xml.pubDate entry.created_at.to_s(:rfc822)
xml.pubDate entry.created_at.to_formatted_s(:rfc822)
xml.comments diary_entry_url(entry.user, entry, :anchor => "comments", :only_path => false)
if entry.latitude && entry.longitude