Amend wiki listing and general timezone formats (fixes #2649)

This commit is contained in:
Type-kun
2016-09-01 22:37:09 +05:00
parent 73d62bbc01
commit 93fca3ce2b
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -16,7 +16,7 @@
<% @wiki_pages.each do |wiki_page| %>
<tr>
<td class="category-<%= wiki_page.category_name %>"><%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :noredirect => 1) %></td>
<td><%= wiki_page.updated_at.strftime("%Y-%m-%d %I:%M") %> by <%= h link_to_user wiki_page.updater %></td>
<td><%= wiki_page.updated_at.strftime("%Y-%m-%d %H:%M") %> by <%= h link_to_user wiki_page.updater %></td>
</tr>
<% end %>
</tbody>