mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 10:23:36 +02:00
Add the ability to change date format in config. Implements #108.
This commit is contained in:
@@ -600,7 +600,7 @@ class DirectoryLister {
|
||||
'file_path' => $this->_appURL . $directoryPath,
|
||||
'url_path' => $this->_appURL . $directoryPath,
|
||||
'file_size' => '-',
|
||||
'mod_time' => date('Y-m-d H:i:s', filemtime($realPath)),
|
||||
'mod_time' => date($this->_config['date_display'], filemtime($realPath)),
|
||||
'icon_class' => 'fa-level-up',
|
||||
'sort' => 0
|
||||
);
|
||||
@@ -625,7 +625,7 @@ class DirectoryLister {
|
||||
'file_path' => $relativePath,
|
||||
'url_path' => $urlPath,
|
||||
'file_size' => is_dir($realPath) ? '-' : $this->getFileSize($realPath),
|
||||
'mod_time' => date('Y-m-d H:i:s', filemtime($realPath)),
|
||||
'mod_time' => date($this->_config['date_display'], filemtime($realPath)),
|
||||
'icon_class' => $iconClass,
|
||||
'sort' => $sort
|
||||
);
|
||||
|
@@ -8,6 +8,8 @@ return array(
|
||||
'list_sort_order' => 'natcasesort',
|
||||
'theme_name' => 'bootstrap',
|
||||
'external_links_new_window' => true,
|
||||
// Format of date display, see: http://php.net/manual/en/function.date.php
|
||||
'date_display' => 'Y-m-d H:i:s',
|
||||
|
||||
// Hidden files
|
||||
'hidden_files' => array(
|
||||
|
Reference in New Issue
Block a user