Optimal updating of forecasts for the timing of future events