[TYPO3-english] Display correct timezone in fluid format.date notation

Sergio Catalá scatala.enet at gmail.com
Mon Jun 3 13:31:42 CEST 2013


Hi list,

I would like to get a date like this with fluid:

04.06.2013 12:23 (GMT+1)

The inline notation I use for this is:

{f:format.date(date:\'@{mydate}\', format:\'d.m.Y H:i (T)\')}

But the problem is that my php.ini "date.timezone" config option is set 
to "Europe/Berlin", and I don't want to change that.

How could I convert it to the desired format?

I saw that the flags available for displaying the offset are in the 
format "+0100" and not "+1", by the way.

Thanks in advance,
Sergio



More information about the TYPO3-english mailing list