diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-03-15 02:15:01 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-03-15 02:15:01 +0000 |
commit | 9de81036dd31c9b02c63586e598214507feff501 (patch) | |
tree | 26b697e4b602cebdab6a6fe7c917fceba702886d /activesupport/lib | |
parent | eccf39203f21a03fdeb55ba3ce6afcd8f791f92c (diff) | |
download | rails-9de81036dd31c9b02c63586e598214507feff501.tar.gz rails-9de81036dd31c9b02c63586e598214507feff501.tar.bz2 rails-9de81036dd31c9b02c63586e598214507feff501.zip |
Switch to_xml to use the date formate defined in xml schema.[Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb index 840421789b..4cd171a6d1 100644 --- a/activesupport/lib/active_support/core_ext/hash/conversions.rb +++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb @@ -12,7 +12,7 @@ module ActiveSupport #:nodoc: XML_FORMATTING = { "date" => Proc.new { |date| date.to_s(:db) }, - "datetime" => Proc.new { |time| time.to_s(:db) } + "datetime" => Proc.new { |time| time.xmlschema } } def to_xml(options = {}) |