Fuso horario
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
%th Descrição
|
||||
- @log_entries.each do |entry|
|
||||
%tr
|
||||
%td= entry.created_at.strftime("%d/%m/%y %H:%M:%S")
|
||||
%td= tz(entry.created_at).strftime("%d/%m/%y %H:%M:%S")
|
||||
%td= link_to truncate(h(entry.user.display_name), 20), user_path(entry.user)
|
||||
- unless @course
|
||||
%td= link_to h(entry.course.short_name), course_url(entry.course)
|
||||
|
||||
@@ -10,7 +10,7 @@ xml.rss(:version=>"2.0") do
|
||||
description = render(:partial => 'log/log_entry.html.haml', :locals => { :entry => entry })
|
||||
xml.title("")
|
||||
xml.description(description + " por #{link_to h(entry.user.display_name), user_url(entry.user)}")
|
||||
xml.pubDate(entry.created_at.rfc2822)
|
||||
xml.pubDate(tz(entry.created_at).rfc2822)
|
||||
xml.link(course_log_url(@course, :id => entry))
|
||||
xml.guid(course_log_url(@course, :id => entry))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user