God. Fucking. Damn it.
This commit is contained in:
parent
fe1991a68a
commit
6a006c8afe
@ -2825,7 +2825,7 @@
|
|||||||
Time.foo();
|
Time.foo();
|
||||||
chanOffset = 5 - new Date().getTimezoneOffset() / 60;
|
chanOffset = 5 - new Date().getTimezoneOffset() / 60;
|
||||||
if ($.isDST()) chanOffset--;
|
if ($.isDST()) chanOffset--;
|
||||||
this.parse = Date.parse('10/11/11(Tue)18:53' === 1318351980000) ? function(node) {
|
this.parse = Date.parse('10/11/11(Tue)18:53') === 1318351980000 ? function(node) {
|
||||||
return new Date(Date.parse(node.textContent) + chanOffset * HOUR);
|
return new Date(Date.parse(node.textContent) + chanOffset * HOUR);
|
||||||
} : function(node) {
|
} : function(node) {
|
||||||
var day, hour, min, month, year, _, _ref;
|
var day, hour, min, month, year, _, _ref;
|
||||||
|
|||||||
@ -2324,7 +2324,7 @@ Time =
|
|||||||
chanOffset-- if $.isDST()
|
chanOffset-- if $.isDST()
|
||||||
|
|
||||||
@parse =
|
@parse =
|
||||||
if Date.parse '10/11/11(Tue)18:53' is 1318351980000
|
if Date.parse('10/11/11(Tue)18:53') is 1318351980000
|
||||||
(node) -> new Date Date.parse(node.textContent) + chanOffset*HOUR
|
(node) -> new Date Date.parse(node.textContent) + chanOffset*HOUR
|
||||||
else # Firefox and Opera do not parse 4chan's time format correctly
|
else # Firefox and Opera do not parse 4chan's time format correctly
|
||||||
(node) ->
|
(node) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user