Convert time param to Time
This commit is contained in:
parent
b6d5fcd477
commit
c11c574d3e
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ module ApplicationHelper
|
|||
element = content_tag :time, time.to_s,
|
||||
class: "#{html_class} js-timeago #{"js-timeago-pending" unless skip_js}",
|
||||
datetime: time.to_time.getutc.iso8601,
|
||||
title: time.in_time_zone.to_s(:medium),
|
||||
title: time.to_time.in_time_zone.to_s(:medium),
|
||||
data: { toggle: 'tooltip', placement: placement, container: 'body' }
|
||||
|
||||
unless skip_js
|
||||
|
|
Loading…
Reference in a new issue