Normalize timepicker events

Only trigger the open and close events if we
actually need to open or close the time picker.