Dates should be able to go xmlschema too [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-03-18 21:37:10 +00:00
parent 9db8f3e57a
commit 2de765e850

View File

@@ -25,6 +25,10 @@ module ActiveSupport #:nodoc:
def to_time(form = :local)
::Time.send(form, year, month, day)
end
def xmlschema
to_time.xmlschema
end
end
end
end