[TYPO3-core] RFC: Correction of Feature #5110: stdWrap + GMT option for stdWrap.strftime

Susanne Moog typo3 at susannemoog.de
Fri Sep 18 21:43:33 CEST 2009


Hi,

Ralf Hettinger schrieb:
> This is an SVN patch request.
> 
> Type: New feature (correction of patchfile)
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=5110
> 
> Branches:
> trunk
> 
> Problem:
> (1) Sometimes it might be quite useful, if strftime supported .stdWrap - e.g. if
> you would want your frontend visitor to be able to decide for "his own" date
> format to be shown.
> (2) Additionally, it would be nice to have gmstrftime at hands by a simple
> switch instead of strftime (e.g. if you eval time fields).
> @see http://www.php.net/manual/de/function.gmstrftime.php
> 
> Solution:
> (1) Enable stdWrap for stdWrap.strftime
> (2) Enable new switch strftime.gm=[boolean]
> 
> Notes:
> Previous patch introduced a bug. Please use corrected version attached, if merged.

+1 by testing with this TS:

page.20 = TEXT
page.20.value = 987654321
page.20.strftime.field = title
page.20.strftime.gm = 1 (and 0 tested, too)

Page is titled %d-%m-%Y %H:%M

I think especially the gm is very handy as afair some microformats
require the date to be in GMT.

Regards,

Susanne


-- 
Susanne Moog
NEUSTA GmbH - www.neusta.de


More information about the TYPO3-team-core mailing list