Convert record_date to time object fot test