[TYPO3-dev] TCA and displaying timestamps

Steffen Kamper steffen at dislabs.de
Sun Oct 29 14:21:12 CET 2006


Hi,

i tried to display fe_users in page-modul. For this I configured the Display 
in typo3conf/extTables.php in this way:

$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['fe_users'][0] 
= Array(
 'fList' => 
'username,tx_dapifeuser_kindofmembership,name,email,tx_dapifeuser_dapiaccountnumber,tx_dapifeuser_dapicode,lastlogin',
 'icon' => TRUE,
);

Now my problem is the following.
I want to display the field lastlogin. Cause there is no TCA-Definition I 
did it by myself

$GLOBALS['TCA']['fe_users']['columns']['lastlogin'] = Array(
    'label' => 'Last Login',
    'config' => Array(
        'type' > 'input',
        'size' => '8',
        'max' => '20',
        'eval' => 'datetime',
    ),
);

Now the field is displayed, but still as timestamp. How can I display this 
timestamp in DateTime-Format ?

thx for help, vg
Steffen 






More information about the TYPO3-dev mailing list