[TYPO3-english] Error using strftime and TSFE

Peter Russ peter.russ at 4many.net
Mon May 25 09:28:12 CEST 2009


--- Original Nachricht ---
Absender:   Christian Müller (Kitsunet)
Datum:       24.05.2009 19:40:
> Bartbogdan wrote:
>> Hi all,
>>
>> Using the following code:
>>  30 = TEXT
>>  30.data = TSFE:fe_user|user|date_of_birth
>>  30.strftime = %e %B %G
>>
>> PHP will throw the following error:
>> typo3 strftime() expects parameter 2 to be long
>>
>> How can I circumvent this error?
>> Apparantly the timestamp given by TSFE:fe_user|user|date_of_birth is a 
>> string. So how can I make it such that is is converted to long?
>>
>> Best regards,
>>
>> Bart
>>
>>
> 
> Maybe in tslib_cObj the content should be casted to integer, I will 
> write a patch for that. You cannot do anything about it I think.

30.prioriCalc=intval

-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list