fixt time function in scheduler