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

element-plus中发现,dayjs格式化超长年份错误问题 #2825

Open
zhixiaotong opened this issue Feb 14, 2025 · 1 comment
Open

Comments

@zhixiaotong
Copy link

Describe the bug
输入99999999999999999999999-12-01被格式化成了年份10007,且222222222222222222229999999999999999999999999之间格式化都有问题

Expected behavior
按理说应该会被截取前4位

Information

  • Day.js Version 1.11.13
  • OS: windows11
  • Browser chrome132.0.6834.160
  • Time zone: [上海时区]
@zhixiaotong
Copy link
Author

zhixiaotong commented Feb 14, 2025

see element-plus/element-plus#19841

dayjs('9999999999999999999999-12-01', 'YYYY-MM-DD')

### expected
9999-12-01

### actually
10007-12-01

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

1 participant