Time element helpers

back edit

#time_ago_in_words_js

<%= time_ago_in_words_js issue.created_at %>
<relative-time datetime="2019-05-25T00:00:00.000Z" class="no-wrap">May 25, 2019</relative-time>

#time_ago_js

<%= time_ago_js issue.created_at %>
<time-ago datetime="2019-05-25T00:00:00.000Z" class="no-wrap">May 25, 2019</time-ago>

#local_or_relative_time_tag

<%= local_or_relative_time_tag issue.created_at %>
<local-time datetime="2019-05-25T00:00:00.000Z" class="no-wrap" month="short" day="2-digit" year="numeric">May 25, 2019</local-time>