update the time