aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/disabled.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/disabled.js')
-rw-r--r--examples/disabled.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/disabled.js b/examples/disabled.js
index 633b8db..4b7c5eb 100644
--- a/examples/disabled.js
+++ b/examples/disabled.js
@@ -7,7 +7,6 @@ import ReactDom from 'react-dom';
7 7
8import GregorianCalendar from 'gregorian-calendar'; 8import GregorianCalendar from 'gregorian-calendar';
9import DateTimeFormat from 'gregorian-calendar-format'; 9import DateTimeFormat from 'gregorian-calendar-format';
10import zhCn from 'gregorian-calendar/lib/locale/zh_CN';
11 10
12import TimePicker from 'rc-time-picker'; 11import TimePicker from 'rc-time-picker';
13import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; 12import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';
@@ -17,7 +16,7 @@ const str = showSecond ? 'HH:mm:ss' : 'HH:mm';
17 16
18const formatter = new DateTimeFormat(str); 17const formatter = new DateTimeFormat(str);
19 18
20const now = new GregorianCalendar(zhCn); 19const now = new GregorianCalendar(TimePickerLocale.calendar);
21now.setTime(Date.now()); 20now.setTime(Date.now());
22 21
23function generateOptions(length, excludedOptions) { 22function generateOptions(length, excludedOptions) {