aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb
index a9d7eb0976..2a14a46480 100644
--- a/activesupport/lib/active_support/core_ext/date/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -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