mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 07:44:23 +02:00
Fixes Apache mod_autoindex date parsing.
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
@@ -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');
|
||||||
|
Reference in New Issue
Block a user