dayjs
dayjs copied to clipboard
dayjs('2016年10月11日', 'YYYY年MM月DD日') get Invalid Date
Describe the bug
Use the latest version of dayjs
dayjs('2016年10月11日', 'YYYY年MM月DD日')
result
M {$L: 'en', $d: Invalid Date, $x: {…}, $y: NaN, $M: NaN, …}
but in 1.8.21
result
M {$L: 'en', $u: undefined, $d: Tue Oct 11 2016 00:00:00 GMT+0800 (中国标准时间), $y: 2016, $M: 9, …}
Why can't the content containing Chinese be parsed normally in the latest version?
Hi, I've tried to reproduce the issue with this demo, but I can't, can you please modify the demo to show the issue?
This dependent on CustomParseFormat plugin to work