HI I am in the process of switching a rails 3 project from ActiveRecord to 
Datamapper.  I am using sqlite3 in development now and whenever I load a model 
I get this error:

DataObjects::DataError: Couldn't parse date: 2011/02/18 09:57 PM (code: , sql 
state: , query: , uri: )
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-do-adapter-1.0.2/lib/dm-do-adapter/adapter.rb:145:in
 `next!'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-do-adapter-1.0.2/lib/dm-do-adapter/adapter.rb:145:in
 `block in read'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-do-adapter-1.0.2/lib/dm-do-adapter/adapter.rb:260:in
 `with_connection'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-do-adapter-1.0.2/lib/dm-do-adapter/adapter.rb:138:in
 `read'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/repository.rb:162:in
 `read'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:1116:in
 `lazy_load'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/support/lazy_array.rb:411:in
 `each'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:508:in
 `each'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:975:in
 `map'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/dm-core-1.0.2/lib/dm-core/collection.rb:975:in
 `inspect'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/console.rb:44:in
 `start'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/console.rb:8:in
 `start'
        from 
/Users/joshmoore/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands.rb:23:in
 `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'


It is happening on either the updated_at or created_at fields (dm-timestamps) 
because those are the only rows that have dates.  I any ideas are welcome.

Thanks,

Josh

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to