⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (1.02 KB)
Bug #16716
» 4515.txt
Administrator Admin, 2006-11-14 15:47
--- class.t3lib_tceforms.php Tue Nov 14 15:31:36 2006
+++ class.t3lib_tceforms.new.php Tue Nov 14 15:37:13 2006
@@ -2467,15 +2467,19 @@
$format = trim($config['format']);
switch($format) {
case 'date':
- $option = trim($config['format.']['option']);
- if ($option) {
- if ($config['format.']['strftime']) {
- $value = strftime($option,$itemValue);
+ if ($itemValue) {
+ $option = trim($config['format.']['option']);
+ if ($option) {
+ if ($config['format.']['strftime']) {
+ $value = strftime($option,$itemValue);
+ } else {
+ $value = date($option,$itemValue);
+ }
} else {
- $value = date($option,$itemValue);
+ $value = date('d-m-Y',$itemValue);
}
} else {
- $value = date('d-m-Y',$itemValue);
+ $value = '';
}
if ($config['format.']['appendAge']) {
$value .= ' ('.t3lib_BEfunc::calcAge((time()-$itemValue), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')).')';
« Previous
1
2
Next »
(2-2/2)
Loading...