relative-time-element icon indicating copy to clipboard operation
relative-time-element copied to clipboard

Web component extensions to the standard <time> element.

Results 41 relative-time-element issues
Sort by recently updated
recently updated
newest added

The [docs about the `datetime`](https://github.com/github/relative-time-element#datetime-string) attribute say: > This must be a valid [ISO8601 DateTime](https://en.wikipedia.org/wiki/ISO_8601) This statement is incorrect. Any value that can be passed to the [`Date` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) will...

enhancement
help wanted

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,...

[Here](https://github.com/github/relative-time-element/blob/3a8f30f1a66edbe8d4e76c721ff1767c49b0ed27/src/relative-time-element.ts#L173) A style argument is being passed to the config of the Intl.RelativeTimeFormat constructor. [But Here](https://github.com/github/relative-time-element/blob/3a8f30f1a66edbe8d4e76c721ff1767c49b0ed27/src/relative-time-element.ts#L188) There's no way to configure the `timeStyle` or `dateStyle` properties as described in the...

Currently the element always sets the `title` attribute, but to implement a custom tooltip solution, it would be nice for it to set a different HTML attribute. How about a...

Hello, I would like to display some dates relatively to now. However, I want to display it at max days, no weeks, months, years, etc. Is this somehow possible? I...

This is a semver MAJOR version, which removes the deprecated `auto`, `elapsed`, and `micro` versions of the date, which pose problems due to assistive technologies misreading the contractions (`1m` is...

The element currently render the hour format according to the local of the provided `lang` attribute, which when `en` or `en-US` will uses 12h clock format which is unexpected for...

This code runs on github.com and displays timestamps in relative formatting... but I really NEVER want to see timestamps in relative form. I'd so much rather that 'last week' show...

Have a case where sometimes we want to display times in local TZ, sometimes based on TZ of where the timestamp originated. I've just slapped a TZ attribute on the...

Using relative-time-element v4.4.5. I am in a UTC-5 time zone. The current time for me is April 30 1:53PM (2025-04-30 18:53 UTC). I've set up a test page at https://greasyfork.org/en/relative_date_test...