Commit fb8aa2b3 authored by unarist's avatar unarist Committed by Eugen Rochko

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

parent 00f9f16f
......@@ -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);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment