diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index b700ea1c6a0dce5c4b13cba0cf78e4cf030adff2..7faba5d4896bbd742519cfc69d9ccaceabaad0e8 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -687,7 +687,14 @@ class FileList */ protected function renderCreationTime(ResourceView $resourceView): string { - $timestamp = ($resourceView->resource instanceof File) ? $resourceView->getCreatedAt() : null; + if ($resourceView->resource instanceof File) { + $timestamp = $resourceView->getCreatedAt(); + } elseif ($resourceView->resource instanceof Folder) { + $timestamp = $resourceView->resource->getCreationTime(); + } else { + $timestamp = null; + } + return $timestamp ? BackendUtility::datetime($timestamp) : ''; } @@ -696,7 +703,14 @@ class FileList */ protected function renderModificationTime(ResourceView $resourceView): string { - $timestamp = ($resourceView->resource instanceof File) ? $resourceView->getUpdatedAt() : null; + if ($resourceView->resource instanceof File) { + $timestamp = $resourceView->getUpdatedAt(); + } elseif ($resourceView->resource instanceof Folder) { + $timestamp = $resourceView->resource->getModificationTime(); + } else { + $timestamp = null; + } + return $timestamp ? BackendUtility::datetime($timestamp) : ''; } @@ -1647,6 +1661,10 @@ class FileList . ($resource->checkActionPermission('write') ? 'W' : ''); case 'name': return $resource->getName(); + case 'tstamp': + return $resource->getModificationTime() . 't'; + case 'crdate': + return $resource->getCreationTime() . 'c'; default: return ''; }