Index: t3lib/class.t3lib_befunc.php
===================================================================
--- t3lib/class.t3lib_befunc.php (revision 8077)
+++ t3lib/class.t3lib_befunc.php (working copy)
@@ -1626,8 +1626,8 @@
* @param integer Time stamp, seconds
* @return string Formatted time
*/
- public static function datetime($value) {
- return date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'], $value);
+ public static function datetime($tstamp) {
+ return date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] .' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'], $tstamp);
}
/**
Index: typo3/class.file_list.inc
===================================================================
--- typo3/class.file_list.inc (revision 8077)
+++ typo3/class.file_list.inc (working copy)
@@ -348,7 +348,7 @@
$theData[$field]=strtoupper($theFile['fileext']);
break;
case 'tstamp':
- $theData[$field]=Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $theFile['tstamp']);
+ $theData[$field] = t3lib_BEfunc::date($theFile['tstamp']);
break;
case 'file':
$theData[$field]= $this->linkWrapDir($title,$path);
@@ -492,7 +492,7 @@
$theData[$field]=strtoupper($theFile[$field]);
break;
case 'tstamp':
- $theData[$field]=Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $theFile[$field]);
+ $theData[$field] = t3lib_BEfunc::date($theFile[$field]);
break;
case '_CLIPBOARD_':
$temp = '';
Index: typo3/mod/tools/em/class.em_index.php
===================================================================
--- typo3/mod/tools/em/class.em_index.php (revision 8077)
+++ typo3/mod/tools/em/class.em_index.php (working copy)
@@ -1030,13 +1030,9 @@
';
if (is_file(PATH_site.'typo3temp/extensions.xml.gz')) {
- $dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
- $timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
+
$content .= ' ' . sprintf($GLOBALS['LANG']->getLL('ext_list_last_updated') . ' ',
- date(
- $dateFormat . ', ' . $timeFormat,
- filemtime(PATH_site . 'typo3temp/extensions.xml.gz')
- )
+ t3lib_BEfunc::datetime(filemtime(PATH_site . 'typo3temp/extensions.xml.gz'))
);
}
}
@@ -6092,13 +6088,8 @@
.' ';
$this->content .= $this->doc->section($LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:header_upd_ext'), $content, 0, 1);
- $dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
- $timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
$content = sprintf($GLOBALS['LANG']->getLL('note_last_update_new'),
- date(
- $dateFormat . ', ' . $timeFormat,
- filemtime(PATH_site . 'typo3temp/extensions.xml.gz')
- )
+ t3lib_BEfunc::datetime(filemtime(PATH_site . 'typo3temp/extensions.xml.gz'))
) . '
';
}
Index: typo3/show_item.php
===================================================================
--- typo3/show_item.php (revision 8077)
+++ typo3/show_item.php (working copy)
@@ -100,8 +100,13 @@
$config = $GLOBALS['TCA'][$table]['columns'][$field]['config'];
switch($config['type']) {
case 'input':
- if (isset($config['checkbox']) && $content==$config['checkbox']) {$content=''; break;}
- if (t3lib_div::inList($config['eval'],'date')) {$content = Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'],$content); }
+ if (isset($config['checkbox']) && $content==$config['checkbox']){
+ $content='';
+ break;
+ }
+ if (t3lib_div::inList($config['eval'], 'date')) {
+ $content = t3lib_BEfunc::date($content);
+ }
break;
case 'group':
break;
Index: typo3/sysext/belog/mod/index.php
===================================================================
--- typo3/sysext/belog/mod/index.php (revision 8077)
+++ typo3/sysext/belog/mod/index.php (working copy)
@@ -212,7 +212,7 @@
if (!$this->theTime) {
$this->MOD_SETTINGS['manualdate'] = '';
} else {
- $this->MOD_SETTINGS['manualdate'] = date($this->dateFormat, $this->theTime);
+ $this->MOD_SETTINGS['manualdate'] = t3lib_BEfunc::datetime($this->theTime);
}
}
@@ -223,7 +223,7 @@
if (!$this->theTime_end) {
$this->MOD_SETTINGS['manualdate_end'] = '';
} else {
- $this->MOD_SETTINGS['manualdate_end'] = date($this->dateFormat, $this->theTime_end);
+ $this->MOD_SETTINGS['manualdate_end'] = t3lib_BEfunc::datetime($this->theTime_end);
}
}
}
@@ -390,8 +390,8 @@
$this->content.= $this->doc->section(
$GLOBALS['LANG']->getLL('overview'),
sprintf($GLOBALS['LANG']->getLL('timeInfo'),
- date($this->dateFormat, $starttime),
- date($this->dateFormat, $endtime)) .
+ t3lib_BEfunc::datetime($starttime),
+ t3lib_BEfunc::datetime($endtime)) .
'
' . implode('
', $overviewList),
1, 1, 0
);
@@ -423,8 +423,8 @@
$this->content .= $this->doc->section(
sprintf($GLOBALS['LANG']->getLL('logForNonPageRelatedActionsOrRootLevelOrPage'),
$insertMsg,
- date($this->dateFormat, $starttime),
- date($this->dateFormat, $endtime)
+ t3lib_BEfunc::datetime($starttime),
+ t3lib_BEfunc::datetime($endtime)
),
'', 1, 1, 0
);
Index: typo3/sysext/beuser/mod/index.php
===================================================================
--- typo3/sysext/beuser/mod/index.php (revision 8077)
+++ typo3/sysext/beuser/mod/index.php (working copy)
@@ -1586,7 +1586,7 @@
$outTable .= '