倒计时 时间有误差
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
倒计时 时间有误差,例如: {title:'教师节',time:'2023-09-10'}, 计算倒计时,显示还有47天。但实际 还有48天.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Information**
- Day.js Version [e.g. v1.0.0]
- OS: [e.g. iOS]
- Browser [e.g. chrome 62]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Contributor guide
Research direction
Start by reproducing the countdown example for 2023-09-10 and compare the result across the relevant timezone and daylight-saving settings. Confirm the Day.js version, operating system, browser, and timezone, then identify the countdown calculation entry point and add a regression test showing the expected day count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100