Skip to content

One full year extra when displaying relative time to 2015 #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bartvdbraak opened this issue Feb 6, 2025 · 0 comments
Open

One full year extra when displaying relative time to 2015 #307

bartvdbraak opened this issue Feb 6, 2025 · 0 comments

Comments

@bartvdbraak
Copy link

bartvdbraak commented Feb 6, 2025

 <relative-time prefix="" tense="past" datetime="2015-02-14T15:13:48+05:00"></relative-time>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant