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

DatePicker 类型为 week 时,周显示策略优化 #1475

Closed
GleanCoder1116 opened this issue Dec 28, 2020 · 0 comments
Closed

DatePicker 类型为 week 时,周显示策略优化 #1475

GleanCoder1116 opened this issue Dec 28, 2020 · 0 comments
Labels
bug Something isn't working comp:datepicker

Comments

@GleanCoder1116
Copy link
Collaborator

GleanCoder1116 commented Dec 28, 2020

根据中华人民共和国国家标准GB/T 7408-2005《数据元和交换格式信息交换日期和时间表示法》中4.3.2.2:一年中的第一个日历星期包括该年的第一个星期四,并且日历年的最后一个日历星期就是在下一个日历年的第一个日历星期之前的那个星期,日历星期数是其在该年中的顺序。

  • 即如果过最后一周的周四在该年内,即显示为该年 52 或 52周
  • 根据国际化自定义变更周起始

参考文档

https://en.wikipedia.org/wiki/ISO_week_date

@GleanCoder1116 GleanCoder1116 added the bug Something isn't working label Dec 28, 2020
@GleanCoder1116 GleanCoder1116 changed the title DatePicker 类型为 week 时,周显示策略问题修复 DatePicker 类型为 week 时,周显示策略问题优化 Dec 30, 2020
@GleanCoder1116 GleanCoder1116 changed the title DatePicker 类型为 week 时,周显示策略问题优化 DatePicker 类型为 week 时,周显示策略优化 Dec 30, 2020
GleanCoder1116 pushed a commit that referenced this issue Dec 30, 2020
solarjoker added a commit that referenced this issue Dec 30, 2020
@GleanCoder1116 GleanCoder1116 mentioned this issue Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:datepicker
Projects
None yet
Development

No branches or pull requests

2 participants