Skip to content

Commit 7f166c1

Browse files
committed
Date formatting
1 parent 05f84bb commit 7f166c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/home/dashboard.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<td class="text-center"><%= @papers_last_3_months[editor.id].to_i %></td>
3636
<td class="text-center"><%= @papers_last_year[editor.id].to_i %></td>
3737
<td class="text-center"><%= @papers_all_time[editor.id].to_i %></td>
38-
<td class="text-center" style="font-size: 0.9em;"><%= time_ago_in_words(editor.created_at) %> ago</td>
38+
<td class="text-center" style="font-size: 0.9em;"><%= distance_of_time_in_words(editor.created_at, Time.current) %> ago</td>
3939
</tr>
4040
<% end %>
4141
</tbody>

0 commit comments

Comments
 (0)