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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 22, '12 at 9:39p
activeFeb 22, '12 at 9:39p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Lucas Souza: 1 post

People

Translate

site design / logo © 2021 Grokbase