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

针对“周”的日期字符串解析异常 #2668

Closed
CNFeffery opened this issue Jun 4, 2024 · 0 comments · Fixed by #2705
Closed

针对“周”的日期字符串解析异常 #2668

CNFeffery opened this issue Jun 4, 2024 · 0 comments · Fixed by #2705

Comments

@CNFeffery
Copy link

CNFeffery commented Jun 4, 2024

在已经加载advancedFormat插件的情况下,针对指定日期字符串的格式化解析结果错误:

console.log(dayjs().format('YYYY年-第w周'));
console.log(dayjs().format('yyyy-第w周'));
console.log(dayjs('2024年-第24周', 'yyyy年-第w周'));
console.log(dayjs('2024年-第24周', 'YYYY年-第w周'));

image

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

Successfully merging a pull request may close this issue.

1 participant