iamkun / iamkun/dayjs

bug in dayjs month

Open
#2,325 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**
A clear and concise description of what the bug is.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Information**
- Day.js Version v1.11.7
- OS: Windows 11
- Time zone: GMT+02:00


```js
console.log(dayjs());
```
is returning `M {
'$L': 'en',
'$d': 2023-06-06T13:06:06.731Z,
'$x': {},
'$y': 2023,
'$M': 5,
'$D': 6,
'$W': 2,
'$H': 15,
'$m': 6,
'$s': 6,
'$ms': 731
}`
Shouldn't $M be 6

Contributor guide

Open the contributing guide

Research direction

The payload names no source file or test. Start by checking Day.js's public month API and the meaning of internal `$M`; reproduce the snippet under the stated version, then compare the observed value with documented behavior and add a focused regression test only if it is a real defect.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.