mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
fix: should pass locale to TimePicker
This commit is contained in:
parent
2d513ae576
commit
dd57b6d707
@ -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…
Reference in New Issue
Block a user