[TYPO3-english] Error using strftime and TSFE

"Christian Müller (Kitsunet)" christian at kitsunet.de
Mon May 25 11:34:59 CEST 2009


Peter Russ wrote:
> --- 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
> 

Good idea!


More information about the TYPO3-english mailing list