From c9ed104a46f08ef44cdb0eb3fd16117495961024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saulo=20Mendon=C3=A7a?= Date: Wed, 25 Oct 2017 21:51:48 -0200 Subject: [PATCH] update date formats on views --- app/views/institutions/index.html.erb | 2 +- app/views/jobs/show.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/institutions/index.html.erb b/app/views/institutions/index.html.erb index e90d6f2..850ff81 100644 --- a/app/views/institutions/index.html.erb +++ b/app/views/institutions/index.html.erb @@ -30,7 +30,7 @@ <%= institution.name %> <%= institution.description %> <%= institution.category %> - <%= I18n.l institution.created_at %> + <%= I18n.l(institution.created_at, format: :short) %> <%= link_to edit_institution_path(institution), class: "btn-floating blue" do %> edit diff --git a/app/views/jobs/show.html.erb b/app/views/jobs/show.html.erb index 2b408a5..67f9ac2 100644 --- a/app/views/jobs/show.html.erb +++ b/app/views/jobs/show.html.erb @@ -26,10 +26,10 @@
<%= Job.human_attribute_name(:start_date) %>: -
<%= @job.start_date %>
+
<%= I18n.l(@job.start_date.to_date ) %>

<%= Job.human_attribute_name(:end_date) %>: -
<%= @job.end_date %>
+
<%= I18n.l(@job.end_date.to_date ) %>