github / relative-time-element

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

Allow setting timezone attribute #292

Open Moggers opened 5 days ago

Moggers commented 5 days 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 4 days ago

Seems reasonable. PRs welcome!