change created_at to time