Wow, that was retarded.  Ready, fire, aim.  Thank god it's Friday.

Josh, what version of sqlite3, and can you update to data_objects + do_sqlite3 
edge and see if you still have the same problem?  A new release is impending 
for both DM and DO that directly touches datetime stuff.

cheers,
--jordan


On Feb 18, 2011, at 12:58 PM, Jordan Ritter wrote:

> What version of data_objects, do_sqlite3 and dm-core?
> 
> cheers,
> --jordan
> 
> On Feb 18, 2011, at 6:02 AM, Josh Moore wrote:
> 
>> 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.
> 

-- 
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