iamkun / iamkun/dayjs

dayjs(1360013296,'X')can not get correct result

Open
#1,504 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**
I have used the advancedFormat plugin, and hope that dayjs and moment behave the same, but the results are different

**Expected behavior**
dayjs(1360013296,'X') Should return a correct dayjs object

**Information**
- Day.js Version ^1.10.4
- OS: bigsur 11.3
- Browser chrom 90.0.4430.212

Contributor guide

Open the contributing guide

Research direction

Start by reproducing dayjs(1360013296, 'X') with the advancedFormat plugin and compare its result with Moment.js. Trace the date parsing and format-token handling; done means the call returns the correct Day.js object and matches the expected Moment.js behavior.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.