aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
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 /app/helpers/link_to_helper.rb
parent9fefc251044904785ddfbe69a16448131c0ab4e6 (diff)
Show times on timeline, not just dates.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb4
1 files changed, 4 insertions, 0 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