github / github/relative-time-element
Stray days added to duration
- 主要言語
- JavaScript
- スター
- 4k
- フォーク
- 192
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 5
説明
Hey, I am having an issue where the relative time between `2022-07-11T09:00:00+02:00` and `2023-07-11T09:00:00+02:00` is `1 year, 5 days` instead of `1 year`. Similarly `2023-05-11T09:00:00+02:00` and `2023-07-11T09:00:00+02:00` are `2 months, 1 day` where I'd expect it to be just `2 months`. As I shorten or lengthen the difference between datetimes the days decrease or increase respectively.
I can think of possibilities at calculation level where these come from, however I find the human-readable duration confusing.
コントリビューションガイド
調査の方向性
issue にある 2 組の日付を使って relative-time-element で報告された出力を再現し、次に Web コンポーネントで使用されている期間の計算を追跡します。1 年間隔と 2 か月間隔で期待される動作を確認し、他の相対期間が引き続き正しいまま、それらの間隔に余分な 1 日が含まれなくなった時点で issue の対応完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend, web-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100