From 6245c4654cc046fcf406b05edc9d4978f2451cd7 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Sun, 16 Sep 2012 01:50:15 +0200 Subject: [PATCH] Fixes Apache mod_autoindex date parsing. --- src/_h5ai/config.js | 6 +++--- src/_h5ai/js/inc/parser/apache-autoindex.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_h5ai/config.js b/src/_h5ai/config.js index c156304d..dafa14cd 100644 --- a/src/_h5ai/config.js +++ b/src/_h5ai/config.js @@ -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. diff --git a/src/_h5ai/js/inc/parser/apache-autoindex.js b/src/_h5ai/js/inc/parser/apache-autoindex.js index 4190512c..b118db05 100644 --- a/src/_h5ai/js/inc/parser/apache-autoindex.js +++ b/src/_h5ai/js/inc/parser/apache-autoindex.js @@ -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');