iamkun / iamkun/dayjs

dayjs format behaves inconsistently in different versions of macOS

Open
#2,816 0 comments 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**

MacOS 12.6
`dayjs("2025-01-15T16:00:00Z","YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD HH:mm:ss")==>>>> '2025-01-16 00:00:00'
`

MacOS 13.4.1
`dayjs("2025-01-15T16:00:00Z","YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD HH:mm:ss")==>>>> '2025-01-15 16:00:00'`

![Image](https://github.com/user-attachments/assets/74259b5b-502d-4e1c-b0c7-f1bf8a4ad2f4)

**Information**
- MacOS
- chrome 131.0.6778.266
- Time zone: Time zone: UTC+8

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing the exact dayjs expression on macOS 12.6 and 13.4.1 with Chrome 131 and UTC+8, then compare the resulting behavior; done means the version-dependent formatting discrepancy is explained and covered by a reproducible test or confirmed environmental limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.