Fixes Apache mod_autoindex date parsing.

This commit is contained in:
Lars Jung
2012-09-16 01:50:15 +02:00
parent 1f3d501a04
commit 6245c4654c
2 changed files with 4 additions and 4 deletions

View File

@@ -31,9 +31,9 @@ var H5AI_CONFIG = {
/* /*
An array of view modes the user may choose from. Currently there An array of view modes the user may choose from. Currently there
are two possible values: "details" and "icons". The first value are two possible values: "details", "icons", "grid", and "list".
indicates the default view mode. If only one value is given the The first value indicates the default view mode. If only one value
view mode is fixed and the selector buttons are hidden. is given the view mode is fixed and the selector buttons are hidden.
The user selected view mode is also stored local in modern browsers The user selected view mode is also stored local in modern browsers
so that it will be persistent. so that it will be persistent.

View File

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