diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 23f63d9f2..d82785f5d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -76,8 +76,7 @@ module ApplicationHelper end def time_tag(content, time) - zone = time.strftime("%z") - datetime = time.strftime("%Y-%m-%dT%H:%M" + zone[0, 3] + ":" + zone[3, 2]) + datetime = time.strftime("%Y-%m-%dT%H:%M%:z") content_tag(:time, content || datetime, :datetime => datetime, :title => time.to_formatted_s) end diff --git a/app/views/wiki_pages/index.html.erb b/app/views/wiki_pages/index.html.erb index cba73e06c..94822042e 100644 --- a/app/views/wiki_pages/index.html.erb +++ b/app/views/wiki_pages/index.html.erb @@ -16,7 +16,7 @@ <% @wiki_pages.each do |wiki_page| %>