updated variable time to cur_time