92 if ($this->extensionRepository->countAll() === 0 || $forceUpdateCheck) {
94 $updated = $this->repositoryHelper->updateExtList();
95 }
catch (\
TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException $e) {
96 $errorMessage = $e->getMessage();
100 $repository = $this->repositoryRepository->findOneTypo3OrgRepository();
102 $timeFormat = $this->
getLanguageService()->
sL(
'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:extensionList.updateFromTer.lastUpdate.fullTimeFormat');
103 $lastUpdateTime = $repository ? $repository->getLastUpdate() :
null;
104 if (
null === $lastUpdateTime) {
105 $lastUpdatedSince = $this->
getLanguageService()->
sL(
'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:extensionList.updateFromTer.never');
106 $lastUpdateTime = date($timeFormat);
109 time() - $lastUpdateTime->format(
'U'),
110 $this->getLanguageService()->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.minutesHoursDaysYears')
112 $lastUpdateTime = $lastUpdateTime->format($timeFormat);
114 $this->view->assign(
'value', [
115 'updated' => $updated,
116 'lastUpdateTime' => $lastUpdateTime,
117 'timeSinceLastUpdate' => $lastUpdatedSince,
118 'errorMessage' => $errorMessage