From dd57b6d7076371ac71fb532ef5d1af2192ca2824 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 11 May 2016 14:59:32 +0800 Subject: [PATCH] fix: should pass locale to TimePicker --- components/date-picker/wrapPicker.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/date-picker/wrapPicker.jsx b/components/date-picker/wrapPicker.jsx index a1453f2443..918406fa2e 100644 --- a/components/date-picker/wrapPicker.jsx +++ b/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, };