app/helpers/governor_helper.rb in governor-0.5.3 vs app/helpers/governor_helper.rb in governor-0.5.4
- old
+ new
@@ -13,8 +13,8 @@
def get_date_label(year, month=nil, day=nil)
l Date.new(*[year, month, day].compact), :format => "#{'%B ' if month}#{'%d, ' if day}%Y"
end
def show_time_ago(date)
- %{<acronym title="#{date.strftime '%A, %B %d, %Y at %I:%M %p'}">#{distance_of_time_in_words_to_now date}</acronym> ago}.html_safe
+ %{<time pubdate="" datetime="#{date.localtime.iso8601}" title="#{l date}">#{distance_of_time_in_words_to_now date} ago</time>}.html_safe
end
end