Feature #28243
closedMake timedifference of date input optional
100%
Description
There is a hard coded timespan calculation on inputs of the type "date" in the record list of the TYPO3 backend. The function processing the calculation is called "getProcessedValue" and can be found in the file "class.t3lib_befunc.php".
Because of I don't want the TYPO3 backend to add this information I commented the calculation out as first "solution":
if (t3lib_div::inList($theColConf['eval'], 'date')) {
$l = self::date($value) /* .
' (' . ($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') . self::calcAge(abs($GLOBALS['EXEC_TIME'] - $value), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')) . ')'*/;
}
It would be nice, if the TYPO3 integrator could decide if he wants to provide the timespan between the given date und today.
In my case the customer only wants to get the date and no further difference.
Best regards
Christian
Files
Updated by Wouter Wolters about 10 years ago
- Tracker changed from Bug to Feature
Updated by Christian Seifert over 9 years ago
- Assignee set to Christian Seifert
- Target version set to 7.4 (Backend)
Updated by Christian Seifert over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Gerrit Code Review over 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42849
Updated by Stefan Neufeind over 9 years ago
I'd suggest to concentrace on the general cleaned timezone-handling first (imho issue #61110).
Updated by Stefan Neufeind over 9 years ago
Disregard the previous comment. As Christian pointed out in the review this is about the appended " (-2 days)" or so that gets displayed in the backend for a date-field, not about time-calculations (with timezones).
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42849
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42849
Updated by Gerrit Code Review over 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42849
Updated by Gerrit Code Review over 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42849
Updated by Christian Seifert over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cb093068bb8032909c6c6975e035d52ad398eb1d.
Updated by Riccardo De Contardi over 7 years ago
- Status changed from Resolved to Closed