Display relative dates / times #2541
Closed
sedubois
started this conversation in
Feature requests
Replies: 1 comment
-
field :started_at_relative, as: :text do
"#{time_ago_in_words(record.started_at)} ago"
end
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did not find an option in the Date and DateTime field to display them in relative terms, something like "1 day ago", etc. In Rails there is the
distance_of_time_in_words
utility for that I think. It would be nice to have that option.Beta Was this translation helpful? Give feedback.
All reactions