Fix DateTime cast in Rails 3