Fix #32, The date formatting issue

This commit is contained in:
Prasath Mani 2018-01-19 11:07:57 +05:30
parent f35f503924
commit dd63df8e63
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ To enable/disable authentication set $use_auth to true or false.
- `FM_HIGHLIGHTJS_STYLE` - default is `'vs'`
- `FM_DATETIME_FORMAT` - default is `'d.m.y H:i'`
- `FM_EXTENSION` - default is `""` //upload files extensions
- `FM_TREEVIEW` - default is `true`
- `FM_TREEVIEW` - default is `false`
### :loudspeaker: Features

View file

@ -64,7 +64,7 @@ $datetime_format = 'd.m.y H:i';
$upload_extensions = ''; // 'gif,png,jpg'
// show or hide the left side tree view
$show_tree_view = true;
$show_tree_view = false;
//Array of folders excluded from listing
$GLOBALS['exclude_folders'] = array(
@ -1185,7 +1185,7 @@ foreach ($folders as $f) {
foreach ($files as $f) {
$is_link = is_link($path . '/' . $f);
$img = $is_link ? 'fa fa-file-text-o' : fm_get_file_icon_class($path . '/' . $f);
$modif = date("d.m.y H:i", filemtime($path . '/' . $f));
$modif = date(FM_DATETIME_FORMAT, filemtime($path . '/' . $f));
$filesize_raw = filesize($path . '/' . $f);
$filesize = fm_get_filesize($filesize_raw);
$filelink = '?p=' . urlencode(FM_PATH) . '&view=' . urlencode($f);