Fixing bugs around selecting midnight in the time picker.