Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simonyouth opened this issue Jul 13, 2022 · 3 comments
Open

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

simonyouth opened this issue Jul 13, 2022 · 3 comments

Comments

@simonyouth
Copy link

simonyouth commented Jul 13, 2022

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?

@Bykiev
Copy link

Bykiev commented Jul 13, 2022

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?

@iamkun
Copy link
Owner

iamkun commented Jul 20, 2022

This dependent on CustomParseFormat plugin to work

@YSHIDM
Copy link

YSHIDM commented Jun 12, 2023

这取决于CustomParseFormat插件的工作

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants