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

Elmar Hinz t3elmar at googlemail.com
Tue May 7 14:53:14 CEST 2013


> This gives me:
> donderdag, 1. januari 1970
> 

1.) IMHO this indicates that 0 is parsed instead of the current time.

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?

Try the PHP function directly outside of TYPO3: http://php.net/manual/en/function.date.php

2.) Then you could try to go with strftime alone:

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

The PHP function strftime defaults to the current moment when no timestamp is given.
May the same behaviour works with the TS frontend to it.
More likely it takes 0 as default input, what leads again to your result.

\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