carlosparamio / mongo_odm

Flexible persistence module for any Ruby class to MongoDB
http://github.com/carlosparamio/mongo_odm
MIT License
41 stars 8 forks source link

Support for ActiveSupport::TimeWithZone objects #11

Open carlosparamio opened 13 years ago

carlosparamio commented 13 years ago

When tries to assign an ActiveSupport::TimeWithZone to a field, it complains with:

BSON::InvalidDocument: ActiveSupport::TimeWithZone is not currently supported; use a UTC Time instance instead.

Do the conversion automatically when the document is persisted.

sardaukar commented 13 years ago

+1

voldy commented 13 years ago

+1 Same is affected to me.

marbemac commented 13 years ago

+1

ekampp commented 12 years ago

+1

Xuhao commented 12 years ago

+1