fix: should pass locale to TimePicker

This commit is contained in:
Benjy Cui 2016-05-11 14:59:32 +08:00
parent 2d513ae576
commit dd57b6d707

View File

@ -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,
};