diff --git a/4chan_x.user.js b/4chan_x.user.js index b7a0d24c7..23e1af561 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2203,7 +2203,7 @@ Time.foo(); chanOffset = 5 - new Date().getTimezoneOffset() / 60; if ($.isDST()) chanOffset--; - this.parse = Date.parse('10/11/11(Tue)18:53') ? function(node) { + this.parse = Date.parse('10/11/11(Tue)18:53' === 1318351980000) ? function(node) { return new Date(Date.parse(node.textContent) + chanOffset * HOUR); } : function(node) { var day, hour, min, month, year, _, _ref; diff --git a/changelog b/changelog index 7369019ff..e40826936 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,7 @@ master +- mayhem + fix time formatting year in Opera + fix QR keybinds 2.21.1 - mayhem diff --git a/script.coffee b/script.coffee index c58abc191..975ce5b3c 100644 --- a/script.coffee +++ b/script.coffee @@ -1736,7 +1736,7 @@ Time = chanOffset-- if $.isDST() @parse = - if Date.parse '10/11/11(Tue)18:53' + if Date.parse '10/11/11(Tue)18:53' is 1318351980000 (node) -> new Date Date.parse(node.textContent) + chanOffset*HOUR else # Firefox the Archaic cannot parse 4chan's time (node) ->