fix date/time fields for rails 3