iamkun / iamkun/dayjs

format milliseconds bug

Open
#2,280 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**
Failed to return results as expected

**Expected behavior**
(Hundreds of milliseconds, 1-digit) and (Tens of milliseconds, 2-digits) format success.
image

**Information**
- "dayjs": "^1.11.7",
- "moment": "^2.29.4"
- OS: [MacBook Pro]
- Browser [Chrome 112.0.5615.49(正式版本) (arm64)]
- Time zone: [Tue Apr 11 2023 10:47:10 GMT+0800 (中国标准时间)]

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the milliseconds-formatting case described in the issue, then trace the relevant Day.js formatting behavior and add coverage for the expected one- and two-digit outputs; done means those cases return the expected results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.