github / github/relative-time-element

One full year extra when displaying relative time to 2015

オープン
#307 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4k
フォーク
192
平均マージ
1日 10時間
マージ済み PR(30日)
5

説明

```

```

Is displayed as

> 11 years ago

Relative to today, which is 6 Feb 2025

Is this correct?

---

_https://www.timeanddate.com/date/durationresult.html?d1=14&m1=2&y1=2015&d2=6&m2=2&y2=2025_

From and including: Saturday, 14 February 2015
To, but not including Thursday, 6 February 2025
Result: 3645 days

It is 3645 days from the start date to the end date, but not including the end date.

Or 9 years, 11 months, 23 days excluding the end date.

Or 119 months, 23 days excluding the end date.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、指定された現在の日付である2025年2月6日を基準に、datetime="2015-02-14T15:13:48+05:00" を指定した の例を再現します。相対日付の計算とフォーマットのエントリーポイントを読み、その後、期待される文言をメンテナーに確認してから、修正された年の計算に対するリグレッションテストを追加します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。