iamkun / iamkun/dayjs

use format("YYYY/wo") to get the wrong Value

Open
#2,274 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**
通过 locale("zh-cn").format('YYYY/wo')进行格式化的时候,23年1月1号显示为2023年52周,显示有问题。
https://codesandbox.io/s/objective-wildflower-539cvn?file=/src/App.js

**Expected behavior**
A clear and concise description of what you expected to happen.
期望得到22年第52周

**Information**
- Day.js Version [e.g. v1.11.7]
- OS: [e.g. iOS]
- Browser [e.g. chrome 62]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]

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.