From 4ee1f7320b7ef3b613da3e3d8e7926c808eaaa43 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 15 Nov 2014 23:42:02 +0100 Subject: [PATCH] fuck you, webkit. --- app/assets/javascripts/ago.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/ago.js b/app/assets/javascripts/ago.js index 8da2ab5..3eea9b8 100644 --- a/app/assets/javascripts/ago.js +++ b/app/assets/javascripts/ago.js @@ -18,8 +18,9 @@ function Ago(nodes, options) { ["year", 31536000] ], date: function(node) { + console.debug(node); // works on HTML "time" nodes - return new Date(node.dateTime); + return new Date(node.getAttribute("datetime")); }, format: function(time, unit) { if (!unit) {