[TYPO3-english] Problems with date : U -> strftime

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Tue May 7 17:08:50 CEST 2013


Hello Elmar,

On 7/5/13 4:59 PM, Elmar Hinz wrote:
>> > To approach the error you could try to output without formatting:
>> > temp.copyright = TEXT
>> > temp.copyright.data = date:U
>> > #      temp.copyright.strftime = %A, %e. %B %Y
>> >
>> > Probably 0, but why?
>>
>> No, this gives:
>> 1367938113
>
> Fine! What's the result if you hardcode that as input?
>
> temp.copyright = TEXT
> temp.copyright.value = 1367938113
> temp.copyright.strftime = %A, %e. %B %Y

The above gives also:
donderdag, 1. januari 1970

So where is it going wrong here?

Thanks and regards,
Bert


More information about the TYPO3-english mailing list