diff options
author | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-06 12:51:39 +0300 |
---|---|---|
committer | Antony Shaleynikov <shaleynikov@gmail.com> | 2017-03-06 12:51:39 +0300 |
commit | eb3c19e2cd2e11cec1eed9337ce44a312b3fc60b (patch) | |
tree | 33e9bfb75a5ed12629d85cc8095030b8f21db1e9 /examples | |
parent | 2a8cf5ae98a8b827e62aa20212053de6171315c9 (diff) | |
download | time-picker-eb3c19e2cd2e11cec1eed9337ce44a312b3fc60b.tar.gz time-picker-eb3c19e2cd2e11cec1eed9337ce44a312b3fc60b.tar.zst time-picker-eb3c19e2cd2e11cec1eed9337ce44a312b3fc60b.zip |
Added support for lower/uppercase of AM/PM selectors
Diffstat (limited to 'examples')
-rw-r--r-- | examples/12hours.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/12hours.js b/examples/12hours.js index 44e514a..16e428d 100644 --- a/examples/12hours.js +++ b/examples/12hours.js | |||
@@ -10,7 +10,7 @@ import moment from 'moment'; | |||
10 | import TimePicker from 'rc-time-picker'; | 10 | import TimePicker from 'rc-time-picker'; |
11 | 11 | ||
12 | const showSecond = false; | 12 | const showSecond = false; |
13 | const str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | 13 | const str = showSecond ? 'h:mm a' : 'h:mm a'; |
14 | 14 | ||
15 | const now = moment().hour(0).minute(0); | 15 | const now = moment().hour(0).minute(0); |
16 | 16 | ||
@@ -24,6 +24,7 @@ ReactDom.render( | |||
24 | defaultValue={now} | 24 | defaultValue={now} |
25 | className="xxx" | 25 | className="xxx" |
26 | onChange={onChange} | 26 | onChange={onChange} |
27 | format={str} | ||
27 | use12Hours | 28 | use12Hours |
28 | />, | 29 | />, |
29 | document.getElementById('__react-content') | 30 | document.getElementById('__react-content') |