copr-backend: fix directory listing mtime
Fixes: https://pagure.io/copr/copr/issue/1649
This commit is contained in:
parent
31cc6b81ae
commit
182b4e2ba6
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ if($path != "./") {
|
|||
// Print folder information
|
||||
foreach($folderlist as $folder) {
|
||||
print "<tr><td class='n'><a href='" . addslashes($folder['name']). "'>" .htmlentities($folder['name']). "</a>/</td>";
|
||||
print "<td class='m'>" . date('Y-M-d H:m:s', $folder['modtime']) . "</td>";
|
||||
print "<td class='m'>" . date('Y-M-d H:i:s', $folder['modtime']) . "</td>";
|
||||
print "<td class='s'>" . (($calculate_folder_size)?format_bytes($folder['size'], 2):'--') . " </td>";
|
||||
print "<td class='t'>" . $folder['file_type'] . "</td></tr>";
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ foreach($folderlist as $folder) {
|
|||
// Print file information
|
||||
foreach($filelist as $file) {
|
||||
print "<tr><td class='n'><a href='" . addslashes($file['name']). "'>" .htmlentities($file['name']). "</a></td>";
|
||||
print "<td class='m'>" . date('Y-M-d H:m:s', $file['modtime']) . "</td>";
|
||||
print "<td class='m'>" . date('Y-M-d H:i:s', $file['modtime']) . "</td>";
|
||||
print "<td class='s'>" . format_bytes($file['size'],2) . " </td>";
|
||||
print "<td class='t'>" . $file['file_type'] . "</td></tr>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue