added activerecord datetime support