iamkun / iamkun/dayjs

Advanced Format

Open
#2,245 3 comments 2 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**
The day of the month ordinal format doesn't work properly.
```
case 'Do':
return locale.ordinal(this.$D)
```

This returns for example 17o and not 17th. The transformation doesn't work.

**Expected behavior**
I expect that the ordinal gets properly encoded.

**Information**
- Day.js Version v1.11.7
- OS: Mac OS 13.2.1
- Browser: Chrome 109.0.5414.119
- Time zone: EST New York

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.