aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2007-10-09 20:02:07 +0000
committerfrancis <francis>2007-10-09 20:02:07 +0000
commita0d1b8aadedfd2a3d9dfcb903014c63fbfb8cd39 (patch)
treee14e2048b468fabe64a1ed6678232d87b23c4b69 /app/helpers/application_helper.rb
parentc3ade0115f44cfe055d7450cef07954de9668440 (diff)
Display dates more nicely.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb7
1 files changed, 6 insertions, 1 deletions
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