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] 周选择器时跨年周场景下获得的时间格式异常 #3261

Closed
zdz4510 opened this issue Aug 5, 2024 · 3 comments
Closed
Labels
🐞 bug Something isn't working IssueShoot middle middle level of difficulties to be published fixed, not be published

Comments

@zdz4510
Copy link

zdz4510 commented Aug 5, 2024

tdesign-vue 版本

1.9.4

重现链接

https://tdesign.tencent.com/vue/components/date-picker?tab=demo#%E5%91%A8%E9%80%89%E6%8B%A9%E5%99%A8

重现步骤

使用周[范围]选择器时,当选择某年的【第一周】时,若鼠标点中的是【上一年末的日期】,则会导致显示年份计算错误(如:选择2014-1周时,若鼠标悬停至2013年12月31日,控件显示的时间会变成错误的2013-1周)

期望结果

正常应该是2014-1周

实际结果

3fabdecd3ae9592a67fc7642489dcb01.mp4

框架版本

vue 2.6.10

浏览器版本

No response

系统版本

No response

Node版本

v14.15.4

补充说明

No response

Copy link
Contributor

github-actions bot commented Aug 5, 2024

👋 @zdz4510,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@zdz4510 zdz4510 changed the title [组件名称] 使用日期范围周组件时,选取周获得的时间格式异常 [date-range-picker] 使用周选择器时,选取【跨年周】获得的时间格式异常 Aug 5, 2024
@activeroc
Copy link

我这也有相同的问题,很头痛,临时把周选择器换成其它的了

@uyarn uyarn added 🐞 bug Something isn't working to be published fixed, not be published labels Aug 7, 2024
@uyarn uyarn changed the title [date-range-picker] 使用周选择器时,选取【跨年周】获得的时间格式异常 [DatePicker] 周选择器时跨年周场景下获得的时间格式异常 Aug 29, 2024
@uyarn uyarn added IssueShoot middle middle level of difficulties and removed to be published fixed, not be published labels Aug 29, 2024
@uyarn uyarn added the to be published fixed, not be published label Sep 24, 2024
@uyarn
Copy link
Collaborator

uyarn commented Sep 24, 2024

fixed 1.10.2

@uyarn uyarn closed this as completed Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working IssueShoot middle middle level of difficulties to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants