Update the date formatting syntax

This commit is contained in:
Jyri-Petteri Paloposki 2025-06-29 13:25:14 +03:00
parent 3fc943ce2a
commit 13bdef74b3
14 changed files with 36 additions and 36 deletions

View file

@ -11,7 +11,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title h(context.title)
xml.description context_summary(context, count_undone_todos_phrase(context))
xml.pubDate context.created_at.to_s(:rfc822)
xml.pubDate context.created_at.to_formatted_s(:rfc822)
xml.link context_url(context)
xml.guid context_url(context)
end

View file

@ -11,7 +11,7 @@ xml.rss :version => "2.0" do
xml.item do
xml.title h(todo.description)
xml.description feed_content_for_todo(todo)
xml.pubDate todo.created_at.to_s(:rfc822)
xml.pubDate todo.created_at.to_formatted_s(:rfc822)
xml.link (todo.project && !todo.project.is_a?(NullProject)) ? project_url(todo.project) : context_url(todo.context)
xml.guid todo_url(todo)
end