Parse a string.
This commit is contained in:
parent
448c6aad4e
commit
b59f1ddc37
@ -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;
|
||||
|
||||
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user