From a0d1b8aadedfd2a3d9dfcb903014c63fbfb8cd39 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 9 Oct 2007 20:02:07 +0000 Subject: Display dates more nicely. --- app/helpers/application_helper.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/helpers/application_helper.rb') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7ad5d5b31..b3c62fc5e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application_helper.rb,v 1.5 2007-09-12 08:52:23 francis Exp $ +# $Id: application_helper.rb,v 1.6 2007-10-09 20:02:13 francis Exp $ module ApplicationHelper @@ -34,5 +34,10 @@ module ApplicationHelper end end + # Basic date format + def simple_date(date) + return date.strftime("%e %B %Y") + end + end -- cgit v1.2.3