Fuso horario

This commit is contained in:
2008-03-11 13:19:29 -03:00
parent 37e1c72ce0
commit 5d51f929c6
4 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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