Fix mindate/maxdate logic on time picker