Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

use format_date to format timestamp instead of parsing date from stringified timestamp

Ivan Kuchin692e74391e64
diff --git a/app/views/homescreen/blocks/_news.html.erb b/app/views/homescreen/blocks/_news.html.erb
index e5679870546..54ec263adb5 100644
--- a/app/views/homescreen/blocks/_news.html.erb
+++ b/app/views/homescreen/blocks/_news.html.erb
@@ -8,7 +8,7 @@
<%= link_to_project(news.project) + ': ' %>
<%= link_to h(news.title), news_path(news) %>
</div>
- <div class="widget-box--author news-author"><%= authoring_at Date.strptime(news.created_at.to_s), news.author %></div>
+ <div class="widget-box--author news-author"><%= authoring_at format_date(news.created_at), news.author %></div>
<p class="widget-box--additional-info"><%= news.summary %></p>
</li>
<% end %>