fuck you, webkit.

This commit is contained in:
jomo
2014-11-15 23:42:02 +01:00
parent 4bab18d477
commit 4ee1f7320b

View File

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