Parse a string.

This commit is contained in:
Nicolas Stepien 2011-10-12 00:59:24 +02:00
parent 448c6aad4e
commit b59f1ddc37
2 changed files with 2 additions and 2 deletions

View File

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

View File

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