Revert "[TASK] Rebuild the calcAge functionality"
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / ViewHelpers / TimeSinceLastUpdateViewHelper.php
index f14654a..9f9796a 100644 (file)
@@ -32,6 +32,9 @@ class TimeSinceLastUpdateViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abs
                                'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:extensionList.updateFromTer.never'
                        );
                }
-               return \TYPO3\CMS\Core\Utility\DateTimeUtility::getAgeString($lastUpdateTime);
+               return \TYPO3\CMS\Backend\Utility\BackendUtility::calcAge(
+                       time() - $lastUpdateTime->format('U'),
+                       $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')
+               );
        }
 }