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

This commit is contained in:
unarist authored and Eugen Rochko committed 2017-08-25 17:21:16 +02:00
1 parent 00f9f16f94
commit fb8aa2b3ba
1 file changed
+1
+1
View File
@@ -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);
});
});