From: Tomek Rabczak Date: 2012-01-19T04:37:08+09:00 Subject: [ruby-core:42174] [Backport93 - Backport #5907] DateTime.xmlschema overwrites passed parameter Issue #5907 has been updated by Tomek Rabczak. Ticket and patch already filed here https://bugs.ruby-lang.org/issues/5908 ---------------------------------------- Backport #5907: DateTime.xmlschema overwrites passed parameter https://bugs.ruby-lang.org/issues/5907 Author: Tomek Rabczak Status: Open Priority: Normal Assignee: Category: Target version: Hi there, I originally filed this bug in rails, however it was recommended that I file it here. The issue can be found here: https://github.com/rails/rails/issues/4507#issuecomment-3546570 (From that post) Rails 3.1.0 ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] this is the only string i have seen that produces this result >> datetime_string = "2006-02-13T10:37:00.000-05:00" => "2006-02-13T10:37:00.000-05:00" >> datetime_string => "2006-02-13T10:37:00.000-05:00" >> DateTime.xmlschema( datetime_string ) => Mon, 13 Feb 2006 10:37:00 -0500 >> datetime_string => " -Tomek -- http://bugs.ruby-lang.org/