Commit c359e7c4

mo <mo.khan@gmail.com>
2017-09-09 04:54:33
display join date in local time.
1 parent f84f05c
Changed files (1)
app
views
app/views/profiles/_index.html.erb
@@ -6,7 +6,7 @@
       <% end %>
       <div class="card-body">
         <h4 class="card-title"><%= truncate(profile.name, length: 20) %></h4>
-        <p class="card-text"><small class="text-muted">joined <%= distance_of_time_in_words_to_now profile.created_at %> ago</small></p>
+        <p class="card-text"><small class="text-muted">joined <%= local_time(profile.created_at) %></small></p>
       </div>
     </div>
   <% end %>