aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/js.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index 9e4dd9d..691b8dc 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -103,7 +103,7 @@
var elements = document.querySelectorAll('.relative-time');
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
- var time = Date.parse(element.getAttribute('title'));
+ var time = Date.parse(element.dataset.date);
var html = element.getAttribute('data-time-prefix') || '';