Browse Source

fix: should pass locale to TimePicker

pull/1641/head
Benjy Cui 9 years ago
parent
commit
dd57b6d707
  1. 2
      components/date-picker/wrapPicker.jsx

2
components/date-picker/wrapPicker.jsx

@ -89,7 +89,7 @@ export default function wrapPicker(Picker, defaultFormat) {
const timeFormat = props.showTime && props.showTime.format;
const rcTimePickerProps = {
formatter: new DateTimeFormat(timeFormat || 'HH:mm:ss'),
formatter: new DateTimeFormat(timeFormat || 'HH:mm:ss', locale.timePickerLocale.format),
showSecond: timeFormat && timeFormat.indexOf('ss') >= 0,
showHour: timeFormat && timeFormat.indexOf('HH') >= 0,
};

Loading…
Cancel
Save