adds new local time helper gem

re: #78
This commit is contained in:
Mark Moser
2017-05-19 10:38:13 -05:00
parent 0f0e7ae75e
commit 8bfe455946
4 changed files with 14 additions and 2 deletions

View File

@ -14,3 +14,4 @@
//= require jquery_ujs
//= require turbolinks
//= require modernizr-lite/modernizr
//= require local_time

View File

@ -6,9 +6,9 @@
<% end %>
<% if comment.edits? %>
<div>Updated <%= time_ago_in_words(comment.updated_at) %> ago</div>
<div>Updated <%= local_time_ago(comment.updated_at) %></div>
<% else %>
<div><%= time_ago_in_words(comment.created_at) %> ago</div>
<div><%= local_time_ago(comment.created_at) %></div>
<% end %>
</div>