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
are two possible values: "details" and "icons". The first value
indicates the default view mode. If only one value is given the
view mode is fixed and the selector buttons are hidden.
are two possible values: "details", "icons", "grid", and "list".
The first value indicates the default view mode. If only one value
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
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'),
$a = $tds.eq(1).find('a'),
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());
absHref = absHref + $a.attr('href');