ActiveSupport String#to_time

Hi guys,

I'm using ActiveResource in my project and I have some troubles with convertions from String to Date.

I have a String date like this: "2012-02-22T09:37:09-02:00". And Rails is converting this string to: 2012-02-22 11:37:09 -0200.

Actually I hope that Rails convert this string to date 2012-02-22 09:37:09 -0200. I found this commit https://github.com/rails/rails/commit/f449da53ac69495e736c7f1ce0f1bc6ebe356081#activesupport/lib/active_support/core_ext/string/conversions.rb that changed this behavior.

I cannot understand what is happening.

Someone can help me?

Thanks