Fix time formatting year in Opera.
This commit is contained in:
parent
29ba27fc48
commit
85c7032d55
@ -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;
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
master
|
||||
- mayhem
|
||||
fix time formatting year in Opera
|
||||
fix QR keybinds
|
||||
|
||||
2.21.1
|
||||
- mayhem
|
||||
|
||||
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user