Fix nexttime() if input time after last