In Ruby 1.9.2, Date.parse is now default to parse dd/mm/yyyy (European
format) instead of mm/dd/yyyy. So the format in mm/dd/yyyy is an invalid
date. home_run gem will help you to overcome this problem, but comes
with lot of incompatibilities. In an application I'm using I had to
revert this gem because it was causing trouble while running tests. Then
I used Date.strptime for this.
--
Posted via http://www.ruby-forum.com/.
--
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.
No comments:
Post a Comment