Under ther HarmonyOS ,time formating cannot be automatically filled with zeros
- 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
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