iamkun / iamkun/dayjs

date UTC format is wrong

Open
#2,882 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.

![Image](https://github.com/user-attachments/assets/471d5ef3-7658-4dc7-ace3-a1c2777b0668)
`dayjs('2025-01-31', 'UTC').startOf('month').add(3, 'month').format('YYYY-MM-DD')`
// 2024-04-30
why the result is 2024-04-30? it should be 2025-04-01?
**Expected behavior**
A clear and concise description of what you expected to happen.

**Information**
- Day.js 1.11.12
- OS: MacOS
- Browser Chrome 137.0.7151.41 (Official Build) (arm64)
- Time zone: Asia/Shangehai

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.