github / relative-time-element

Web component extensions to the standard <time> element.
https://github.github.io/relative-time-element/examples/
MIT License
3.57k stars 170 forks source link

Allow setting timezone attribute #292

Open Moggers opened 1 month ago

Moggers commented 1 month ago

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 element and passed it through - is there particular reason this isn't in the API already before I try to upstream it? Did I fail to RTFM?

keithamus commented 1 month ago

Seems reasonable. PRs welcome!