Revert "[TASK] Rebuild the calcAge functionality"
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Core / SystemEnvironmentBuilder.php
index 713af60..cf02ea3 100644 (file)
@@ -193,7 +193,6 @@ class SystemEnvironmentBuilder {
         */
        static protected function requireBaseClasses() {
                require_once __DIR__ . '/../Utility/GeneralUtility.php';
         */
        static protected function requireBaseClasses() {
                require_once __DIR__ . '/../Utility/GeneralUtility.php';
-               require_once __DIR__ . '/../Utility/DateTimeUtility.php';
                require_once __DIR__ . '/../Utility/ArrayUtility.php';
                require_once __DIR__ . '/../Utility/PathUtility.php';
                require_once __DIR__ . '/../SingletonInterface.php';
                require_once __DIR__ . '/../Utility/ArrayUtility.php';
                require_once __DIR__ . '/../Utility/PathUtility.php';
                require_once __DIR__ . '/../SingletonInterface.php';
@@ -268,7 +267,7 @@ class SystemEnvironmentBuilder {
         */
        static protected function initializeGlobalTimeTrackingVariables() {
                // Set PARSETIME_START to the system time in milliseconds.
         */
        static protected function initializeGlobalTimeTrackingVariables() {
                // Set PARSETIME_START to the system time in milliseconds.
-               $GLOBALS['PARSETIME_START'] = \TYPO3\CMS\Core\Utility\DateTimeUtility::milliseconds();
+               $GLOBALS['PARSETIME_START'] = \TYPO3\CMS\Core\Utility\GeneralUtility::milliseconds();
                // Microtime of (nearly) script start
                $GLOBALS['TYPO3_MISC']['microtime_start'] = microtime(TRUE);
                // EXEC_TIME is set so that the rest of the script has a common value for the script execution time
                // Microtime of (nearly) script start
                $GLOBALS['TYPO3_MISC']['microtime_start'] = microtime(TRUE);
                // EXEC_TIME is set so that the rest of the script has a common value for the script execution time