From b59f1ddc37926565d59a9f136520d0f5646c0caa Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 12 Oct 2011 00:59:24 +0200 Subject: [PATCH] Parse a string. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 76e834f2e..ff3000851 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2193,7 +2193,7 @@ Time = { init: function() { Time.foo(); - this.parse = Date.parse($('.posttime').textContent) ? function(node) { + this.parse = Date.parse('10/11/11(Tue)18:53') ? function(node) { return new Date(Date.parse(node.textContent) + g.chanOffset * HOUR); } : function(node) { var day, hour, min, month, year, _, _ref; diff --git a/script.coffee b/script.coffee index 5a512e945..adaf7f665 100644 --- a/script.coffee +++ b/script.coffee @@ -1661,7 +1661,7 @@ Time = Time.foo() @parse = - if Date.parse $('.posttime').textContent + if Date.parse '10/11/11(Tue)18:53' (node) -> new Date Date.parse(node.textContent) + g.chanOffset*HOUR else # Firefox the Archaic cannot parse 4chan's time (node) ->