Format lastUpdated input as date, not datetime

This commit is contained in:
Daniel Siepmann 2019-12-13 12:11:32 +01:00
parent 02d58890d9
commit de13e1935b

View file

@ -1,9 +1,19 @@
<?php <?php
(function (string $extensionKey) { (function (string $extensionKey, string $tableName) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile( \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
$extensionKey, $extensionKey,
'Configuration/PageTSconfig/Index.tsconfig', 'Configuration/PageTSconfig/Index.tsconfig',
$extensionKey $extensionKey
); );
})('ds_site');
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
'columns' => [
'lastUpdated' => [
'config' => [
'eval' => 'date,int',
],
],
],
]);
})('ds_site', 'pages');