rem: if(!isNaN(parseInt(dateString))) { 
add: if(!isNaN(parseInt(dateString))) { 
context: function dateRescue(dateString){  // Deal with various kinds of invalid dates  // Just timestamps for now.  if(!isNaN(parseInt(dateString))) {//It's an integer, so maybe it's a timestamp    var d = new Date(parseInt(dateString)*1000);    var now = new Date();    var yeardiff = now.getFullYear()-d.getFullYear();    debug("Rescue Timestamp date: " + d.toString() + "\nYear diff:" + yeardiff + "\n");    if((yeardiff >= 0) && (yeardiff<3)){      //it's quite likely the correct date      return d.toString();    }  }  // Can't help. Set to current time.  return (new Date()).toString();  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/28af173c2970973527192c9a4db90e199f2d8115/utils.js/buggy/mail/extensions/newsblog/content/utils.js