[TYPO3-mvc] datetime timezone fluid

Jigal van Hemert jigal.van.hemert at typo3.org
Sat Dec 6 23:11:33 CET 2014


Hi,

On 05/12/2014 21:02, Jacco van der Post wrote:
> I set a datetime via
>
> $newComment->setCommentdate(new \DateTime());
>
> In the TYPO3 backend the commentdate of the record displays the correct
> time and date : 21:00 5-12-2014
>
> In Fluid I do
> <f:format.date format="%e %B om
> %k:%M">{comment.commentdate}</f:format.date>
>
> But it shows the time 1 hour later. 5 december om 22:00
>
> How can I correct this?

Are both
[SYS][serverTimeZone]
and
[SYS][phpTimeZone]
set to the correct and same timezone?

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list