Made purchase_time a time object