Skip to content

DatePicker: fix bug for wrong year number when week cross the year#7860

Merged
Leopoldthecoder merged 1 commit intoElemeFE:devfrom
hh23485:dev
Oct 31, 2017
Merged

DatePicker: fix bug for wrong year number when week cross the year#7860
Leopoldthecoder merged 1 commit intoElemeFE:devfrom
hh23485:dev

Conversation

@hh23485
Copy link
Copy Markdown
Contributor

@hh23485 hh23485 commented Oct 30, 2017

…ke 2014/12/29

我发现了一个bug并且尝试修复。我在使用DatePicker选择周的时候,发现:如果周在跨年的状态下,会出现年份错误。

例如: 当我查看2014年12月29日的周数的时候,得到的是2014年1月。

所以我查看了源码发现没有更新年份,因此我尝试解决。

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@hh23485 hh23485 changed the title DatePicker: fix bug for wrong year number when week cross the year li… DatePicker: fix bug for wrong year number when week cross the year Oct 30, 2017
@Leopoldthecoder Leopoldthecoder merged commit fecc38f into ElemeFE:dev Oct 31, 2017
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 this pull request may close these issues.

2 participants