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

Elmar Hinz t3elmar at googlemail.com
Tue May 7 17:03:10 CEST 2013


Quote: t3elmar wrote on Tue, 07 May 2013 16:59
----------------------------------------------------
> > > 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
> 
> > 
> > I'll try with PHP directly and let you know.
> > 
> 
> As Jigal explained, that should also work.

I mean, that should also work according to his explanation:

temp.copyright = TEXT
#   temp.copyright.data = date:U
temp.copyright.strftime = %A, %e. %B %Y

\Elmar
-- 
### NOW ### until 10th of  May 2013 ### NOW ###

=> Give +1 for the Extension Feedback System: http://forum.typo3.org/index.php/t/195934/ <=

Certified TYPO3 Integrator:  https://www.xing.com/profile/Elmar_Hinz | https://github.com/t3elmar



More information about the TYPO3-english mailing list