From 17fee001a9d40aaed4c62f1e159242ca47182c2b Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 28 Jan 2007 07:36:34 +0000 Subject: :db format for Date#to_s git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/date/conversions.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb') diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 4b9388dacd..8f48ccacde 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -5,7 +5,8 @@ module ActiveSupport #:nodoc: module Conversions DATE_FORMATS = { :short => "%e %b", - :long => "%B %e, %Y" + :long => "%B %e, %Y", + :db => "%Y-%m-%d" } def self.included(klass) #:nodoc: -- cgit v1.2.3