Project

General

Profile

Actions

Feature #28243

closed

Make timedifference of date input optional

Added by Christian Seifert almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
Start date:
2011-07-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

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

date_difference.png (15.4 KB) date_difference.png Christian Seifert, 2011-07-15 17:02
Actions #1

Updated by Tolleiv Nietsch almost 13 years ago

  • Complexity set to medium
Actions #2

Updated by Wouter Wolters over 9 years ago

  • Tracker changed from Bug to Feature
Actions #3

Updated by Christian Seifert almost 9 years ago

  • Assignee set to Christian Seifert
  • Target version set to 7.4 (Backend)
Actions #4

Updated by Christian Seifert over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #5

Updated by Gerrit Code Review over 8 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

Actions #6

Updated by Stefan Neufeind over 8 years ago

I'd suggest to concentrace on the general cleaned timezone-handling first (imho issue #61110).

Actions #7

Updated by Stefan Neufeind over 8 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).

Actions #8

Updated by Gerrit Code Review over 8 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

Actions #9

Updated by Gerrit Code Review over 8 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

Actions #10

Updated by Gerrit Code Review over 8 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

Actions #11

Updated by Gerrit Code Review over 8 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

Actions #12

Updated by Christian Seifert over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF