Fix time formatting year in Opera.

This commit is contained in:
Nicolas Stepien 2011-11-27 17:50:46 +01:00
parent 29ba27fc48
commit 85c7032d55
3 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -1,4 +1,7 @@
master
- mayhem
fix time formatting year in Opera
fix QR keybinds
2.21.1
- mayhem

View File

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