mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 05:08:03 +00:00
Apply user timezone for the title attribute of .time-ago (#4693)
This commit is contained in:
parent
00f9f16f94
commit
fb8aa2b3ba
|
@ -35,6 +35,7 @@ function main() {
|
|||
|
||||
[].forEach.call(document.querySelectorAll('time.time-ago'), (content) => {
|
||||
const datetime = new Date(content.getAttribute('datetime'));
|
||||
content.title = dateTimeFormat.format(datetime);
|
||||
content.textContent = relativeFormat.format(datetime);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue