diff options
author | yiminghe <yiminghe@gmail.com> | 2016-01-14 13:59:59 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-01-14 13:59:59 +0800 |
commit | 6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c (patch) | |
tree | 5e9a993e8f42c933912d677239a6705869c2c214 /examples/disabled.js | |
parent | db4e4d6ec057ac1bff98d86bd1c42085ebc1b306 (diff) | |
download | time-picker-6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c.tar.gz time-picker-6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c.tar.zst time-picker-6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c.zip |
remove gregorianCalendarLocale1.1.0
Diffstat (limited to 'examples/disabled.js')
-rw-r--r-- | examples/disabled.js | 3 |
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 | ||
8 | import GregorianCalendar from 'gregorian-calendar'; | 8 | import GregorianCalendar from 'gregorian-calendar'; |
9 | import DateTimeFormat from 'gregorian-calendar-format'; | 9 | import DateTimeFormat from 'gregorian-calendar-format'; |
10 | import zhCn from 'gregorian-calendar/lib/locale/zh_CN'; | ||
11 | 10 | ||
12 | import TimePicker from 'rc-time-picker'; | 11 | import TimePicker from 'rc-time-picker'; |
13 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; | 12 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; |
@@ -17,7 +16,7 @@ const str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | |||
17 | 16 | ||
18 | const formatter = new DateTimeFormat(str); | 17 | const formatter = new DateTimeFormat(str); |
19 | 18 | ||
20 | const now = new GregorianCalendar(zhCn); | 19 | const now = new GregorianCalendar(TimePickerLocale.calendar); |
21 | now.setTime(Date.now()); | 20 | now.setTime(Date.now()); |
22 | 21 | ||
23 | function generateOptions(length, excludedOptions) { | 22 | function generateOptions(length, excludedOptions) { |