Commit cb2f157
committed
fix: add A → a replacement in dateFns localeParse for use12Hours support
When use12Hours is enabled, rc-picker internally injects uppercase A
(moment.js AM/PM token) into the format string. date-fns uses lowercase
a for AM/PM, so passing A through causes:
RangeError: Format string contains an unescaped latin alphabet character `A`
localeParse already converts other moment tokens (Y→y, D→d, etc.) but
was missing A→a. This adds it.
Fixes #9641 parent 738bcac commit cb2f157
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments