Hopefully fixes date parsing in aai mode.

This commit is contained in:
Lars Jung 2012-09-19 20:56:54 +02:00
parent df208faf25
commit 26d0de5985

View File

@ -6,7 +6,7 @@ modulejs.define('parser/apache-autoindex', ['_', '$', 'core/mode', 'core/setting
var $tds = $(tr).find('td'),
$a = $tds.eq(1).find('a'),
label = $a.text(),
time = format.parseDate($tds.eq(2).text(), 'YYYY-MM-DD HH:mm'),
time = format.parseDate($tds.eq(2).text(), ['YYYY-MM-DD HH:mm', 'DD-MMM-YYYY HH:mm']),
size = format.parseSize($tds.eq(3).text());
absHref = absHref + $a.attr('href');