iamkun / iamkun/dayjs

safari cannot format "2022-09-11 00:00:00 +0800"

Open
#1,822 3 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**
safari cannot use `dayjs("2022-09-11 00:00:00 +0800")`

![1646647861(1)](https://user-images.githubusercontent.com/34206897/157012462-a247fbd3-13a6-450c-b927-fbbd29200993.png)
![1646647871(1)](https://user-images.githubusercontent.com/34206897/157012487-a3abece0-3700-4f97-8905-ec845c1375c0.png)

**Expected behavior**
All browsers except Safari are right

![image](https://user-images.githubusercontent.com/34206897/157012335-3431f20d-6cc8-4472-95e2-0934989caa0c.png)

**Information**
- Day.js Version [v1.8.21]
- OS: [macos 12.1]
- Browser [safari 15.2]
- Time zone: [GMT+8]

Contributor guide

Open the contributing guide

Research direction

Reproduce dayjs("2022-09-11 00:00:00 +0800") in Safari 15.2 on macOS 12.1 and compare its result with other browsers. Trace the date-parsing entry point and verify that the input produces consistent output across browsers without breaking the existing v1.8.21 behavior.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.