Project

General

Profile

Bug #24442 » 16877_v2.diff

Administrator Admin, 2011-01-03 10:58

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
case 'input':
if (isset($value)) {
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')) .
')';
if (intval($value) > 0) {
// do not output 01.01.1970
$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')) .
')';
}
} elseif (t3lib_div::inList($theColConf['eval'], 'time')) {
$l = self::time($value, FALSE);
} elseif (t3lib_div::inList($theColConf['eval'], 'timesec')) {
$l = self::time($value);
} elseif (t3lib_div::inList($theColConf['eval'], 'datetime')) {
$l = self::datetime($value);
if (intval($value) > 0) {
// do not output 01.01.1970
$l = self::datetime($value);
}
} else {
$l = $value;
}
(3-3/3)