set_time is gone, also fix compile warning