From 7a7826fe5b6cd63aafdcc6a0d29de6fc88f2be3b Mon Sep 17 00:00:00 2001 From: Deepak Mahakale Date: Wed, 10 Mar 2021 15:58:07 +0530 Subject: [PATCH] Fixes locale issue with edited_at date of post on the dashboard (#12948) The issue is caused because published_timestamp` is converted to local date wherea the `edited_at` date is not. Fixed by using `local_date` while presenting the `edited_at` date to keep the behaviour same. --- app/views/dashboards/_dashboard_article_row.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/dashboards/_dashboard_article_row.html.erb b/app/views/dashboards/_dashboard_article_row.html.erb index d99be8d99..6c27c2adf 100644 --- a/app/views/dashboards/_dashboard_article_row.html.erb +++ b/app/views/dashboards/_dashboard_article_row.html.erb @@ -16,7 +16,8 @@ Published: <%= local_date(article.published_timestamp, show_year: article.displayable_published_at.year != Time.current.year) %> <% if article.edited? %> - Edited: + Edited: + <%= local_date(article.edited_at, show_year: article.edited_at.year != Time.current.year) %> <% end %> <% if article.collection_id %> Series: <%= article.series %>