iamkun / iamkun/dayjs

Issue while calculating the week difference

Open
#2,544 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
![image](https://github.com/iamkun/dayjs/assets/82883854/b4cef921-75a1-4e81-89f0-de84620072e9)

Doubt: Is the absolute value returned? If so, what's the need for it?

**Expected behavior**
The difference shouldn't be one.

**Information**
- Day.js Version 1.11.7
- OS: [macOS]
- Browser: chrome (120.0.6099.129)
- Time zone: GMT +05:30 IST

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported week-difference calculation using Day.js 1.11.7 and the timezone details in the issue. The screenshot contains the only example, so first identify the missing input dates and expected result; done means the behavior is reproducible and the intended directional or absolute difference is confirmed.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.