[TYPO3-core] RFC: #12229: stdWrap has date but no gmdate
Steffen Kamper
info at sk-typo3.de
Wed Oct 14 09:55:12 CEST 2009
Hi Masi,
Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> Solution:
>> add gmdate
>>
>> 10 = TEXT
>> 10.field = tstamp
>> 10.gmdate = d.m.Y H:i
>
> How about a propery?
>
> 10 = TEXT
> 10.field = tstamp
> 10.date = d.m.Y H:i
> 10.date.gm = 1
>
> The advantage is that the already large list of stdWrap properties isn't getting larger. Plus we can
> apply this property also to stftime.
>
> 10 = TEXT
> 10.field = tstamp
> 10.strftime= %a %H:%i
> 10.strftime.gm = 1
>
> Masi
good addition! Better to use it as property for date and strftime.
See attached patch.
Documentation, tsRef,
add to date:
date.gm = 1
the time returned is Greenwich Mean Time (GMT)
add to strftime:
strftime.gm = 1
the time returned is Greenwich Mean Time (GMT)
vg Steffen
More information about the TYPO3-team-core
mailing list