Bug #68849 ยป patch.diff

Patch that removes the time zone conversion during DB read - Sebastian Mazza, 2015-08-07 18:06

View differences:

typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
320 320
			return NULL;
321 321
		} elseif ($storageFormat === 'date' || $storageFormat === 'datetime') {
322 322
			// native date/datetime values are stored in UTC
323
			$utcTimeZone = new \DateTimeZone('UTC');
324
			$utcDateTime = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, $value, $utcTimeZone);
325
			$currentTimeZone = new \DateTimeZone(date_default_timezone_get());
326
			return $utcDateTime->setTimezone($currentTimeZone);
323
			//$utcTimeZone = new \DateTimeZone('UTC');
324
			//$utcDateTime = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, $value, $utcTimeZone);
325
			//$currentTimeZone = new \DateTimeZone(date_default_timezone_get());
326
			//return $utcDateTime->setTimezone($currentTimeZone);
327
			return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, $value);
327 328
		} else {
328 329
			return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($targetType, date('c', $value));
329 330
		}
    (1-1/1)