summaryrefslogtreecommitdiff
path: root/app/serializers/entity_date_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/entity_date_helper.rb')
-rw-r--r--app/serializers/entity_date_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/entity_date_helper.rb b/app/serializers/entity_date_helper.rb
index b333b3344c3..918abba8d99 100644
--- a/app/serializers/entity_date_helper.rb
+++ b/app/serializers/entity_date_helper.rb
@@ -2,7 +2,7 @@ module EntityDateHelper
include ActionView::Helpers::DateHelper
def interval_in_words(diff)
- "#{distance_of_time_in_words(diff.to_f)} ago"
+ "#{distance_of_time_in_words(Time.now, diff)} ago"
end
# Converts seconds into a hash such as: