[TYPO3-dev] datetime vs date

Loek Hilgersom loek at netcoop.nl
Sun May 8 14:43:55 CEST 2011


Hi Jesper,

I can't look into your code, but for sure this won't work by itself (it would 
have been nice though if it had, but these features are not automatically 
included in the database API if you use t3lib_DB).

To make it work, you have to add the enableFields() method to the where clause 
of the queries. Look for tslib_cObj::enableFields() or 
t3lib_pageSelect::enableFields().

Hth.,
Loek


On 05/06/2011 10:55 AM, Jesper Goos wrote:
> Ok, another issue:
>
> Now that the formatting is set right the endtime itself does not work.
> I checked the server time and the endtime in the database... Is there something
> I have to activate before this works in an extension?
>
> KR Jesper
>
>
> On 5/4/11 10:56 , Kay Strobach wrote:
>> ;)
>>
>> Am 04.05.2011 09:32, schrieb Jesper Goos:
>>> OK, I got it - you made my day, Kay!!
>>>
>>> After adding this to my extTables.php file it works:
>>>
>>> $GLOBALS['TCA']['tt_content']['columns']['starttime']['config']['eval']
>>> = 'datetime';
>>> $GLOBALS['TCA']['tt_content']['columns']['endtime']['config']['eval'] =
>>> 'datetime';
>>> $GLOBALS['TCA']['pages']['columns']['starttime']['config']['eval'] =
>>> 'datetime';
>>> $GLOBALS['TCA']['pages']['columns']['endtime']['config']['eval'] =
>>> 'datetime';
>>>
>>> t3lib_div::loadTCA('tx_someextension');
>>> $GLOBALS['TCA']['tx_someextension']['columns']['starttime']['config']['eval']
>>> = 'datetime';
>>> $GLOBALS['TCA']['tx_someextension']['columns']['endtime']['config']['eval']
>>> = 'datetime';
>>>
>>>
>>> Jesper
>>>
>>
>>
>




More information about the TYPO3-dev mailing list