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) {