Skip to content
Snippets Groups Projects
Commit fb8aa2b3 authored by unarist's avatar unarist Committed by Eugen Rochko
Browse files

Apply user timezone for the title attribute of .time-ago (#4693)

parent 00f9f16f
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ function main() { ...@@ -35,6 +35,7 @@ function main() {
[].forEach.call(document.querySelectorAll('time.time-ago'), (content) => { [].forEach.call(document.querySelectorAll('time.time-ago'), (content) => {
const datetime = new Date(content.getAttribute('datetime')); const datetime = new Date(content.getAttribute('datetime'));
content.title = dateTimeFormat.format(datetime);
content.textContent = relativeFormat.format(datetime); content.textContent = relativeFormat.format(datetime);
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment