Fixed bug with zero hour and zero minute when setting maxTime and minTime