dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

dayjs('2016年10月11日', 'YYYY年MM月DD日') get Invalid Date

Open simonyouth opened this issue 3 years ago • 2 comments

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?

simonyouth avatar Jul 13 '22 09:07 simonyouth

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?

Bykiev avatar Jul 13 '22 12:07 Bykiev

This dependent on CustomParseFormat plugin to work

iamkun avatar Jul 20 '22 02:07 iamkun

这取决于CustomParseFormat插件的工作

能合并就好了,这个api太容易引发误会

YSHIDM avatar Jun 12 '23 02:06 YSHIDM