Feature #28243
closed
Make timedifference of date input optional
Added by Christian Seifert about 13 years ago.
Updated almost 7 years ago.
Category:
Backend User Interface
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
- Tracker changed from Bug to Feature
- Assignee set to Christian Seifert
- Target version set to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- 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
I'd suggest to concentrace on the general cleaned timezone-handling first (imho issue #61110).
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).
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
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
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
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF