aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-10-31 00:32:24 +0000
committerFrancis Irving <francis@mysociety.org>2009-10-31 00:32:24 +0000
commit81ab7c3ec992a9ec4d5b69229c100f4a791762d9 (patch)
tree5a9a1b15f6e6748de9cd8129432c6e6d1f2853b6
parent9fefc251044904785ddfbe69a16448131c0ab4e6 (diff)
Show times on timeline, not just dates.
-rw-r--r--app/helpers/link_to_helper.rb4
-rw-r--r--app/views/admin_general/timeline.rhtml3
2 files changed, 6 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 9c0713435..6ee0edb2b 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -191,6 +191,10 @@ module LinkToHelper
return date.strftime("%e %B %Y").strip
end
+ def simple_time(date)
+ return date.strftime("%H:%M:%S").strip
+ end
+
def year_from_date(date)
return date.strftime("%Y").strip
end
diff --git a/app/views/admin_general/timeline.rhtml b/app/views/admin_general/timeline.rhtml
index 6cbe105b6..dc72e46cd 100644
--- a/app/views/admin_general/timeline.rhtml
+++ b/app/views/admin_general/timeline.rhtml
@@ -22,7 +22,8 @@
<br>
<% end %>
<% last_date = event.created_at.to_date %>
-
+
+ <%= simple_time(event.created_at) %>
<% if event.class.to_s == 'InfoRequestEvent' %>
<%= request_both_links(event.info_request) %>