diff options
author | francis <francis> | 2007-10-09 20:02:07 +0000 |
---|---|---|
committer | francis <francis> | 2007-10-09 20:02:07 +0000 |
commit | a0d1b8aadedfd2a3d9dfcb903014c63fbfb8cd39 (patch) | |
tree | e14e2048b468fabe64a1ed6678232d87b23c4b69 /app/helpers/application_helper.rb | |
parent | c3ade0115f44cfe055d7450cef07954de9668440 (diff) |
Display dates more nicely.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 7 |
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 |