datamapper / do

DataObjects
147 stars 74 forks source link

reading DateTime with do_sqlite3 #9

Closed stepahn closed 13 years ago

stepahn commented 13 years ago

I've had a problem with reading DateTime objects when using the sqlite adapter, they were missing the time portion.

The problem was caused the sscanf expression in parse_date_time which did not account for the T that is inserted after the date by DateTime.to_s.

myabc commented 13 years ago

Thanks!