change DateTime to Time for mongoid