duration({})插件不能将时间单位进行转换,只能无脑生成相应格式的时间字符串。
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
这种写法并不能够将时间进行转换。

下图为正确解决方法。![Uploading image.png…]()
Contributor guide
Research direction
Start from the duration({}) plugin entry point and reproduce the behavior described in the issue, using the linked screenshots as the expected-versus-current reference. Identify the plugin's existing tests, then add coverage showing that duration converts between time units rather than only producing a formatted string; done means the test passes with the expected converted value.
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
- Needs clarification
- Newbie friendliness
- 35/100