-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing datetime tests #19
Comments
It looks like its a 1.9.x issue. It runs fine under 1.8.7, but fails with the error you listed under 1.9.x. |
It looks like date/time parsing in Ruby 1.9.x no longer supports MM/DD/YYYY format. I don't think activerecord-import should do anything special to import dates, so I'm going to remove the example for MM/DD/YYYY and update the other example to use YYYY/MM/DD. |
This has been pushed to master. All of the examples should be green under Ruby 1.9.2. Thanks for reporting this. |
…the Date.parse capabilities to no longer support MM/DD/YYYY functionality so we only test against YYYY/MM/DD. [fixes zdennis/activerecord-import#19]
I'm trying to verify and fix an unrelated bug.
I tried running the tests for mysql and sqlite3, and got these 2 errors:
Trying this in Rails console gives a "ArgumentError: invalid date":
"05/14/2010".to_date
I'm in the UK, so maybe there's some difference in locale setting that means it passes for you?
Ruby 1.9.2, Rails 3.0.1, bundler 1.0.11, CentOS & OS X.
The text was updated successfully, but these errors were encountered: