Turn the object from the ruby type we deal with to a Mongo friendly type.
@example Mongoize the object.
date_time.mongoize
@return [ Time ] The object mongoized.
@since 3.0.0
# File lib/mongoid/extensions/time_with_zone.rb, line 14 def mongoize ::ActiveSupport::TimeWithZone.mongoize(self) end