[TYPO3-mvc] f:format.date timezone "problem"?
Xavier Perseguers
typo3 at perseguers.ch
Wed Jul 28 11:59:15 CEST 2010
Hi,
Just found out something funny (still I'll have to find a trick or
understand it fully):
I have a TCA with a date field (thus in BE). It stores value as a Unix
timestamp:
1255125600
That is, 10.10.2009 00:00
Then I display it with Fluid:
<f:format.date format="d.m.Y">@{myobject.date}</f:format.date>
and I get "09.10.2009" instead. I guess DateTime is using a time offset
corresponding to the server because if I add the time:
<f:format.date format="d.m.Y H:i">@{myobject.date}</f:format.date>
I get
09.10.2009 22:00
Which part is responsible for this problem?
:-)
Xavier
More information about the TYPO3-project-typo3v4mvc
mailing list