Fixed condition in InputDStream isTimeValid.