iamkun / iamkun/dayjs

Under ther HarmonyOS ,time formating cannot be automatically filled with zeros

Open
#2,346 2 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**
Under ther HarmonyOS Arkts project, time formating cannot be automatically filled with zeros .

**Expected behavior**
```
// Expected
dayjs(1687226400000).format("HH:mm:ss") -> 10:00:00
// Now
dayjs(1687226400000).format("HH:mm:ss") -> 10:0:0
```

**Information**
- Day.js Version [1.11.7]
- OS: [HarmonyOS 3.1]
- Browser [native]
- Time zone: [UTC/GMT+08:00]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing dayjs(1687226400000).format("HH:mm:ss") in the HarmonyOS ArkTS environment and compare it with a supported environment. Trace the formatting path for the HH:mm:ss tokens and verify that the completed behavior produces 10:00:00 without breaking other platforms.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.