[TYPO3-mvc] f:format.date timezone "problem"?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Jul 28 15:19:55 CEST 2010
Hey,
> 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?
What timezone have you configured in the installTool? Does it match the
servers timezone?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list