Format lastUpdated input as date, not datetime
This commit is contained in:
parent
02d58890d9
commit
de13e1935b
1 changed files with 12 additions and 2 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue