Revert "[TASK] Rebuild the calcAge functionality"
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FormEngine.php
index d57188a..512d02c 100644 (file)
@@ -3249,7 +3249,7 @@ TBE_EDITOR.customEvalFunctions[\'' . $evalData . '\'] = function(value) {
                                        $value = '';
                                }
                                if ($config['format.']['appendAge']) {
-                                       $value .= ' (' . \TYPO3\CMS\Core\Utility\DateTimeUtility::getAgeStringUnix($itemValue) . ')';
+                                       $value .= ' (' . BackendUtility::calcAge(($GLOBALS['EXEC_TIME'] - $itemValue), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')) . ')';
                                }
                                $itemValue = $value;
                                break;